15 stdenvNoCC.mkDerivation (finalAttrs: {
19 src = fetchFromGitHub {
22 rev = "refs/tags/${finalAttrs.version}";
23 hash = "sha256-g1uedR9BLG0DuGdM/9xqFv6yhBHHnqjQMt1n0z9I29I=";
29 substituteInPlace forgit.plugin.zsh \
30 --replace-fail "\$FORGIT_INSTALL_DIR/bin/git-forgit" "$out/bin/git-forgit"
35 nativeBuildInputs = [ makeWrapper ];
40 install -D bin/git-forgit $out/bin/git-forgit
41 install -D completions/_git-forgit $out/share/zsh/site-functions/_git-forgit
42 install -D forgit.plugin.zsh $out/share/zsh/${finalAttrs.pname}/forgit.plugin.zsh
43 wrapProgram $out/bin/git-forgit \
44 --prefix PATH : ${lib.makeBinPath [ bash coreutils findutils fzf gawk git gnugrep gnused ]}
50 homepage = "https://github.com/wfxr/forgit";
51 description = "Utility tool powered by fzf for using git interactively";
52 mainProgram = "git-forgit";
53 license = licenses.mit;
54 maintainers = with maintainers; [ deejayem ];
55 platforms = platforms.all;