Files
nixpkgs/pkgs/by-name/zs/zsh-forgit/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

70 lines
1.4 KiB
Nix

{
stdenvNoCC,
lib,
bash,
coreutils,
findutils,
fetchFromGitHub,
fzf,
gawk,
git,
gnugrep,
gnused,
makeWrapper,
}:
stdenvNoCC.mkDerivation (finalAttrs: {
pname = "zsh-forgit";
version = "25.10.0";
src = fetchFromGitHub {
owner = "wfxr";
repo = "forgit";
tag = finalAttrs.version;
hash = "sha256-MG60GzRG0NFQsGXBXBedSweucxo88S/NACXTme7ixRM=";
};
strictDeps = true;
postPatch = ''
substituteInPlace forgit.plugin.zsh \
--replace-fail "\$FORGIT_INSTALL_DIR/bin/git-forgit" "$out/bin/git-forgit"
'';
dontBuild = true;
nativeBuildInputs = [ makeWrapper ];
installPhase = ''
runHook preInstall
install -D bin/git-forgit $out/bin/git-forgit
install -D completions/_git-forgit $out/share/zsh/site-functions/_git-forgit
install -D forgit.plugin.zsh $out/share/zsh/zsh-forgit/forgit.plugin.zsh
wrapProgram $out/bin/git-forgit \
--prefix PATH : ${
lib.makeBinPath [
bash
coreutils
findutils
fzf
gawk
git
gnugrep
gnused
]
}
runHook postInstall
'';
meta = with lib; {
homepage = "https://github.com/wfxr/forgit";
description = "Utility tool powered by fzf for using git interactively";
mainProgram = "git-forgit";
license = licenses.mit;
maintainers = with maintainers; [ deejayem ];
platforms = platforms.all;
};
})