Merge pull request #209307 from deejayem/zsh-forgit-23.01.0
This commit is contained in:
commit
79562c9aa1
|
@ -1,14 +1,25 @@
|
||||||
{ stdenv, lib, bash, fetchFromGitHub, makeWrapper, fzf, git }:
|
{ stdenv
|
||||||
|
, lib
|
||||||
|
, bash
|
||||||
|
, coreutils
|
||||||
|
, findutils
|
||||||
|
, fetchFromGitHub
|
||||||
|
, fzf
|
||||||
|
, git
|
||||||
|
, gnugrep
|
||||||
|
, gnused
|
||||||
|
, makeWrapper
|
||||||
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "zsh-forgit";
|
pname = "zsh-forgit";
|
||||||
version = "22.12.0";
|
version = "23.01.0";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "wfxr";
|
owner = "wfxr";
|
||||||
repo = "forgit";
|
repo = "forgit";
|
||||||
rev = version;
|
rev = version;
|
||||||
sha256 = "0juBNUJW4SU3Cl6ouD+xMYzlCJOL7NAYpueZ6V56/ck=";
|
sha256 = "sha256-guAjxFhtybbRyRRXDELDHrM2Xzmi96wPxD2nhL9Ifmk=";
|
||||||
};
|
};
|
||||||
|
|
||||||
strictDeps = true;
|
strictDeps = true;
|
||||||
|
@ -16,9 +27,6 @@ stdenv.mkDerivation rec {
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
substituteInPlace forgit.plugin.zsh \
|
substituteInPlace forgit.plugin.zsh \
|
||||||
--replace "\$INSTALL_DIR/bin/git-forgit" "$out/bin/git-forgit"
|
--replace "\$INSTALL_DIR/bin/git-forgit" "$out/bin/git-forgit"
|
||||||
|
|
||||||
substituteInPlace bin/git-forgit \
|
|
||||||
--replace "/bin/bash" "${bash}/bin/bash"
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
dontBuild = true;
|
dontBuild = true;
|
||||||
|
@ -31,7 +39,7 @@ stdenv.mkDerivation rec {
|
||||||
install -D bin/git-forgit $out/bin/git-forgit
|
install -D bin/git-forgit $out/bin/git-forgit
|
||||||
install -D forgit.plugin.zsh $out/share/zsh/${pname}/forgit.plugin.zsh
|
install -D forgit.plugin.zsh $out/share/zsh/${pname}/forgit.plugin.zsh
|
||||||
wrapProgram $out/bin/git-forgit \
|
wrapProgram $out/bin/git-forgit \
|
||||||
--prefix PATH : ${lib.makeBinPath [ fzf git ]}
|
--prefix PATH : ${lib.makeBinPath [ bash coreutils findutils fzf git gnugrep gnused ]}
|
||||||
|
|
||||||
runHook postInstall
|
runHook postInstall
|
||||||
'';
|
'';
|
||||||
|
|
Loading…
Reference in a new issue