about summary refs log tree commit diff
path: root/pkgs/shells
diff options
context:
space:
mode:
authorDavid Morgan2024-09-06 12:23:50 +0000
committerDavid Morgan2024-09-06 12:23:50 +0000
commit99d636490f81e5024077b7e234871a06f5fe7451 (patch)
tree47d34dd39d6b99f637a91f19e753d18657118934 /pkgs/shells
parent5a24308c384447887fe59453dd23b5cb09079593 (diff)
zsh-forgit: 24.02.0 -> 24.09.0
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;
   };
-}
+})