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