zsh-forgit: 22.12.0 -> 23.01.0
This commit is contained in:
parent
0dcf2ad93d
commit
6d3d0c1ffc
1 changed files with 15 additions and 7 deletions
|
@ -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