Merge pull request #205148 from deejayem/zsh-forgit-22.12.0
This commit is contained in:
commit
63d3f0fd5d
|
@ -1,28 +1,39 @@
|
||||||
{ stdenv, lib, fetchFromGitHub, git, fzf }:
|
{ stdenv, lib, bash, fetchFromGitHub, makeWrapper, fzf, git }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "zsh-forgit";
|
pname = "zsh-forgit";
|
||||||
version = "22.11.0";
|
version = "22.12.0";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "wfxr";
|
owner = "wfxr";
|
||||||
repo = "forgit";
|
repo = "forgit";
|
||||||
rev = version;
|
rev = version;
|
||||||
sha256 = "ca7EM/F0Spsdr3MbjIVwbjLVXg6/qWGczBQHLCcpU5A=";
|
sha256 = "0juBNUJW4SU3Cl6ouD+xMYzlCJOL7NAYpueZ6V56/ck=";
|
||||||
};
|
};
|
||||||
|
|
||||||
strictDeps = true;
|
strictDeps = true;
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
substituteInPlace forgit.plugin.zsh \
|
substituteInPlace forgit.plugin.zsh \
|
||||||
--replace "fzf " "${fzf}/bin/fzf " \
|
--replace "\$INSTALL_DIR/bin/git-forgit" "$out/bin/git-forgit"
|
||||||
--replace "git " "${git}/bin/git "
|
|
||||||
|
substituteInPlace bin/git-forgit \
|
||||||
|
--replace "/bin/bash" "${bash}/bin/bash"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
dontBuild = true;
|
dontBuild = true;
|
||||||
|
|
||||||
|
nativeBuildInputs = [ makeWrapper ];
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
|
runHook preInstall
|
||||||
|
|
||||||
|
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 \
|
||||||
|
--prefix PATH : ${lib.makeBinPath [ fzf git ]}
|
||||||
|
|
||||||
|
runHook postInstall
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
|
Loading…
Reference in a new issue