zsh-forgit: 22.12.0 -> 23.01.0

This commit is contained in:
David Morgan 2023-01-06 13:19:34 +00:00
parent 0dcf2ad93d
commit 6d3d0c1ffc
No known key found for this signature in database
GPG key ID: C171251002C200F2

View file

@ -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 {
pname = "zsh-forgit";
version = "22.12.0";
version = "23.01.0";
src = fetchFromGitHub {
owner = "wfxr";
repo = "forgit";
rev = version;
sha256 = "0juBNUJW4SU3Cl6ouD+xMYzlCJOL7NAYpueZ6V56/ck=";
sha256 = "sha256-guAjxFhtybbRyRRXDELDHrM2Xzmi96wPxD2nhL9Ifmk=";
};
strictDeps = true;
@ -16,9 +27,6 @@ stdenv.mkDerivation rec {
postPatch = ''
substituteInPlace forgit.plugin.zsh \
--replace "\$INSTALL_DIR/bin/git-forgit" "$out/bin/git-forgit"
substituteInPlace bin/git-forgit \
--replace "/bin/bash" "${bash}/bin/bash"
'';
dontBuild = true;
@ -31,7 +39,7 @@ stdenv.mkDerivation rec {
install -D bin/git-forgit $out/bin/git-forgit
install -D forgit.plugin.zsh $out/share/zsh/${pname}/forgit.plugin.zsh
wrapProgram $out/bin/git-forgit \
--prefix PATH : ${lib.makeBinPath [ fzf git ]}
--prefix PATH : ${lib.makeBinPath [ bash coreutils findutils fzf git gnugrep gnused ]}
runHook postInstall
'';