2021-04-26 19:14:03 +00:00
|
|
|
{ lib, buildFishPlugin, fetchFromGitHub, git, fzf }:
|
|
|
|
|
|
|
|
buildFishPlugin rec {
|
|
|
|
pname = "forgit";
|
2022-10-30 15:09:59 +00:00
|
|
|
version = "unstable-2022-10-14";
|
2021-04-26 19:14:03 +00:00
|
|
|
|
2021-05-03 20:48:10 +00:00
|
|
|
preFixup = ''
|
|
|
|
substituteInPlace $out/share/fish/vendor_conf.d/forgit.plugin.fish \
|
|
|
|
--replace "fzf " "${fzf}/bin/fzf " \
|
|
|
|
--replace "git " "${git}/bin/git "
|
|
|
|
'';
|
2021-04-26 19:14:03 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "wfxr";
|
|
|
|
repo = "forgit";
|
2022-10-30 15:09:59 +00:00
|
|
|
rev = "2872548075e63bc83a0b960e2813b16571998563";
|
|
|
|
sha256 = "sha256-NKL4c4k9Nath8NQ3sWUTGUzp517jRX4v0qVaKMJSMrw=";
|
2021-04-26 19:14:03 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A utility tool powered by fzf for using git interactively.";
|
|
|
|
homepage = "https://github.com/wfxr/forgit";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ happysalada ];
|
|
|
|
};
|
|
|
|
}
|