about summary refs log tree commit diff
path: root/pkgs/shells
diff options
context:
space:
mode:
authorWeijia Wang2024-09-19 23:18:02 +0200
committerGitHub2024-09-19 23:18:02 +0200
commitb774239974ca23f6755e7035db97e26397f53f2f (patch)
tree8595f6e421fdaa1cb1c94ce862ede9d7a23d0fd6 /pkgs/shells
parent3ab6abfec1fb67723c594f28306e91f72cd1be58 (diff)
parent99d636490f81e5024077b7e234871a06f5fe7451 (diff)
zsh-forgit: 24.02.0 -> 24.09.0 (#340076)
Diffstat (limited to 'pkgs/shells')
-rw-r--r--pkgs/shells/zsh/zsh-forgit/default.nix20
1 files changed, 10 insertions, 10 deletions
diff --git a/pkgs/shells/zsh/zsh-forgit/default.nix b/pkgs/shells/zsh/zsh-forgit/default.nix
index 13038e05c709..0ace44e06f9d 100644
--- a/pkgs/shells/zsh/zsh-forgit/default.nix
+++ b/pkgs/shells/zsh/zsh-forgit/default.nix
@@ -1,32 +1,33 @@
-{ stdenv
+{ stdenvNoCC
 , lib
 , bash
 , coreutils
 , findutils
 , fetchFromGitHub
 , fzf
+, gawk
 , git
 , gnugrep
 , gnused
 , makeWrapper
 }:
 
-stdenv.mkDerivation rec {
+stdenvNoCC.mkDerivation (finalAttrs: {
   pname = "zsh-forgit";
-  version = "24.02.0";
+  version = "24.09.0";
 
   src = fetchFromGitHub {
     owner = "wfxr";
     repo = "forgit";
-    rev = version;
-    sha256 = "sha256-DoOtrnEJwSxkCZtsVek+3w9RZH7j7LTvdleBC88xyfI=";
+    rev = "refs/tags/${finalAttrs.version}";
+    hash = "sha256-8QgnEu41BHeX6heP2slQT+X+Dti+7Ij+J2zqmU4dm3I=";
   };
 
   strictDeps = true;
 
   postPatch = ''
     substituteInPlace forgit.plugin.zsh \
-      --replace "\$INSTALL_DIR/bin/git-forgit" "$out/bin/git-forgit"
+      --replace-fail "\$FORGIT_INSTALL_DIR/bin/git-forgit" "$out/bin/git-forgit"
   '';
 
   dontBuild = true;
@@ -38,10 +39,9 @@ stdenv.mkDerivation rec {
 
     install -D bin/git-forgit $out/bin/git-forgit
     install -D completions/_git-forgit $out/share/zsh/site-functions/_git-forgit
-    install -D completions/git-forgit.zsh $out/share/zsh/${pname}/git-forgit.zsh
-    install -D forgit.plugin.zsh $out/share/zsh/${pname}/forgit.plugin.zsh
+    install -D forgit.plugin.zsh $out/share/zsh/${finalAttrs.pname}/forgit.plugin.zsh
     wrapProgram $out/bin/git-forgit \
-      --prefix PATH : ${lib.makeBinPath [ bash coreutils findutils fzf git gnugrep gnused ]}
+      --prefix PATH : ${lib.makeBinPath [ bash coreutils findutils fzf gawk git gnugrep gnused ]}
 
     runHook postInstall
   '';
@@ -54,4 +54,4 @@ stdenv.mkDerivation rec {
     maintainers = with maintainers; [ deejayem ];
     platforms = platforms.all;
   };
-}
+})