1{ lib, buildFishPlugin, fetchFromGitHub, git, fzf }:
2
3buildFishPlugin rec {
4 pname = "forgit";
5 version = "unstable-2021-12-05";
6
7 preFixup = ''
8 substituteInPlace $out/share/fish/vendor_conf.d/forgit.plugin.fish \
9 --replace "fzf " "${fzf}/bin/fzf " \
10 --replace "git " "${git}/bin/git "
11 '';
12
13 src = fetchFromGitHub {
14 owner = "wfxr";
15 repo = "forgit";
16 rev = "7b26cd46ac768af51b8dd4b84b6567c4e1c19642";
17 sha256 = "sha256-S/alL3CiyedJ8aGhC2Vg9fmLJYcLxDe4EjQns5dZkKM=";
18 };
19
20 meta = with lib; {
21 description = "A utility tool powered by fzf for using git interactively.";
22 homepage = "https://github.com/wfxr/forgit";
23 license = licenses.mit;
24 maintainers = with maintainers; [ happysalada ];
25 };
26}