Skip to content

Commit

Permalink
zsh-forgit: 24.02.0 -> 24.09.0 (NixOS#340076)
Browse files Browse the repository at this point in the history
  • Loading branch information
wegank authored Sep 19, 2024
2 parents 3ab6abf + 99d6364 commit b774239
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions pkgs/shells/zsh/zsh-forgit/default.nix
Original file line number Diff line number Diff line change
@@ -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;
Expand All @@ -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
'';
Expand All @@ -54,4 +54,4 @@ stdenv.mkDerivation rec {
maintainers = with maintainers; [ deejayem ];
platforms = platforms.all;
};
}
})

0 comments on commit b774239

Please sign in to comment.