2020-02-26 11:57:05 -08:00
|
|
|
{ callPackage, stdenv, fetchFromGitHub, ...}:
|
2019-05-07 18:47:04 -07:00
|
|
|
|
2019-08-13 14:52:01 -07:00
|
|
|
stdenv.mkDerivation {
|
2019-05-07 18:47:04 -07:00
|
|
|
pname = "gitstatus";
|
2020-02-26 11:57:05 -08:00
|
|
|
version = "unstable-2020-02-26";
|
2019-05-07 18:47:04 -07:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "romkatv";
|
|
|
|
repo = "gitstatus";
|
2020-02-26 11:57:05 -08:00
|
|
|
rev = "c0e5a24299c1a1a71434dac1de6ea650e80fbe49";
|
|
|
|
sha256 = "0fj84cvr5a895jqgg86raakx6lqyyhahf1dgzgx05y2gfvnxxh8m";
|
2019-05-07 18:47:04 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ (callPackage ./romkatv_libgit2.nix {}) ];
|
|
|
|
patchPhase = ''
|
2020-01-12 14:21:25 -08:00
|
|
|
sed -i "1i GITSTATUS_DAEMON=$out/bin/gitstatusd" gitstatus.plugin.zsh
|
2019-05-07 18:47:04 -07:00
|
|
|
'';
|
|
|
|
installPhase = ''
|
|
|
|
install -Dm755 gitstatusd $out/bin/gitstatusd
|
|
|
|
install -Dm444 gitstatus.plugin.zsh $out
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "10x faster implementation of `git status` command";
|
|
|
|
homepage = https://github.com/romkatv/gitstatus;
|
|
|
|
license = [ licenses.gpl3 ];
|
|
|
|
|
2020-02-02 12:38:17 -08:00
|
|
|
maintainers = with maintainers; [ mmlb hexa ];
|
2019-05-07 18:47:04 -07:00
|
|
|
};
|
|
|
|
}
|