2019-05-08 02:47:04 +01:00
|
|
|
{callPackage, stdenv, fetchFromGitHub, ...}:
|
|
|
|
|
2019-08-13 22:52:01 +01:00
|
|
|
stdenv.mkDerivation {
|
2019-05-08 02:47:04 +01:00
|
|
|
pname = "gitstatus";
|
2019-12-24 11:15:41 +00:00
|
|
|
version = "unstable-2019-12-18";
|
2019-05-08 02:47:04 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "romkatv";
|
|
|
|
repo = "gitstatus";
|
2019-12-24 11:15:41 +00:00
|
|
|
rev = "8ae9c17a60158dcf91f56d9167493e3988a5e921";
|
|
|
|
sha256 = "1czjwsgbmxd1d656srs3n6wj6bmqr8p3aw5gw61q4wdxw3mni2a6";
|
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 = ''
|
|
|
|
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 ];
|
|
|
|
|
|
|
|
maintainers = [ maintainers.mmlb ];
|
|
|
|
};
|
|
|
|
}
|