2020-02-26 11:57:05 -08:00
|
|
|
{ callPackage, stdenv, fetchFromGitHub, ...}:
|
2019-05-07 18:47:04 -07:00
|
|
|
|
2020-05-31 16:29:55 -07:00
|
|
|
stdenv.mkDerivation rec {
|
2019-05-07 18:47:04 -07:00
|
|
|
pname = "gitstatus";
|
2020-07-06 14:32:26 -07:00
|
|
|
version = "1.2.2";
|
2019-05-07 18:47:04 -07:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "romkatv";
|
|
|
|
repo = "gitstatus";
|
2020-05-31 16:29:55 -07:00
|
|
|
rev = "v${version}";
|
2020-07-06 14:32:26 -07:00
|
|
|
sha256 = "1kspz2fhryyjhn6gqf029rv0386a1ga08sf6g0l6smivw628k71l";
|
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 = ''
|
2020-03-06 14:52:49 -08:00
|
|
|
install -Dm755 usrbin/gitstatusd $out/bin/gitstatusd
|
2019-05-07 18:47:04 -07:00
|
|
|
install -Dm444 gitstatus.plugin.zsh $out
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "10x faster implementation of `git status` command";
|
2020-03-31 18:11:51 -07:00
|
|
|
homepage = "https://github.com/romkatv/gitstatus";
|
2019-05-07 18:47:04 -07:00
|
|
|
license = [ licenses.gpl3 ];
|
2020-02-02 12:38:17 -08:00
|
|
|
maintainers = with maintainers; [ mmlb hexa ];
|
2019-05-07 18:47:04 -07:00
|
|
|
};
|
|
|
|
}
|