2020-04-24 23:36:52 +00:00
|
|
|
{ callPackage, stdenv, fetchFromGitHub, ...}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
pname = "gitstatus";
|
2020-05-03 17:38:23 +00:00
|
|
|
version = "unstable-2020-04-21";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "romkatv";
|
|
|
|
repo = "gitstatus";
|
2020-05-03 17:38:23 +00:00
|
|
|
rev = "3494f25b0b3b2eac241cf669d1fea2b49ea42fb3";
|
|
|
|
sha256 = "0b4g14dkkgih6zps2w1krl9xf44ysj02617zj1k51z127v2lpm1f";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ (callPackage ./romkatv_libgit2.nix {}) ];
|
|
|
|
patchPhase = ''
|
|
|
|
sed -i "1i GITSTATUS_DAEMON=$out/bin/gitstatusd" gitstatus.plugin.zsh
|
|
|
|
'';
|
|
|
|
installPhase = ''
|
|
|
|
install -Dm755 usrbin/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 ];
|
|
|
|
|
|
|
|
maintainers = with maintainers; [ mmlb hexa ];
|
|
|
|
};
|
|
|
|
}
|