about summary refs log tree commit diff
path: root/pkgs/shells/rc-9front
diff options
context:
space:
mode:
authorJacob Moody <moody@posixcafe.org>2023-07-16 22:50:24 -0500
committerJacob Moody <moody@posixcafe.org>2023-07-23 13:16:28 -0500
commita978e48e52011048325b0b0f8380d6100fc1f44a (patch)
tree1530e506be33e75e53e328fc4bf83c2ca6cedba1 /pkgs/shells/rc-9front
parent5dde2776d32b9f6ea206a13df2d5db1bc3710ad9 (diff)
rc-9front: use fetchFrom9Front
Diffstat (limited to 'pkgs/shells/rc-9front')
-rw-r--r--pkgs/shells/rc-9front/default.nix14
1 files changed, 10 insertions, 4 deletions
diff --git a/pkgs/shells/rc-9front/default.nix b/pkgs/shells/rc-9front/default.nix
index e68674dfb3d01..2c3d565db5b9a 100644
--- a/pkgs/shells/rc-9front/default.nix
+++ b/pkgs/shells/rc-9front/default.nix
@@ -1,6 +1,7 @@
 { lib
 , stdenv
-, fetchgit
+, fetchFrom9Front
+, unstableGitUpdater
 , byacc
 , installShellFiles
 }:
@@ -9,8 +10,10 @@ stdenv.mkDerivation {
   pname = "rc-9front";
   version = "unstable-2022-11-01";
 
-  src = fetchgit {
-    url = "git://shithub.us/cinap_lenrek/rc";
+  src = fetchFrom9Front {
+    domain = "shithub.us";
+    owner = "cinap_lenrek";
+    repo = "rc";
     rev = "69041639483e16392e3013491fcb382efd2b9374";
     hash = "sha256-xc+EfC4bc9ZA97jCQ6CGCzeLGf+Hx3/syl090/x4ew4=";
   };
@@ -31,7 +34,10 @@ stdenv.mkDerivation {
     install -m644 rcmain.unix $out/lib/rcmain
   '';
 
-  passthru.shellPath = "/bin/rc";
+  passthru = {
+    shellPath = "/bin/rc";
+    updateScript = unstableGitUpdater { shallowClone = false; };
+  };
 
   meta = with lib; {
     description = "The 9front shell";