2020-02-26 20:57:05 +01:00
|
|
|
{ callPackage, stdenv, fetchFromGitHub, ...}:
|
2019-05-08 03:47:04 +02:00
|
|
|
|
2019-08-13 23:52:01 +02:00
|
|
|
stdenv.mkDerivation {
|
2019-05-08 03:47:04 +02:00
|
|
|
pname = "gitstatus";
|
2020-03-16 13:12:09 +01:00
|
|
|
version = "unstable-2020-03-15";
|
2019-05-08 03:47:04 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "romkatv";
|
|
|
|
repo = "gitstatus";
|
2020-03-06 23:52:49 +01:00
|
|
|
rev = "c07996bc3ea1912652f52a816b830a5a3ee9b49c";
|
|
|
|
sha256 = "07s8hwx3i5mnafi2xfim44z3q2nsvlcibfdxj17w8mkjhfpywi00";
|
2019-05-08 03:47:04 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ (callPackage ./romkatv_libgit2.nix {}) ];
|
|
|
|
patchPhase = ''
|
2020-01-12 23:21:25 +01:00
|
|
|
sed -i "1i GITSTATUS_DAEMON=$out/bin/gitstatusd" gitstatus.plugin.zsh
|
2019-05-08 03:47:04 +02:00
|
|
|
'';
|
|
|
|
installPhase = ''
|
2020-03-06 23:52:49 +01:00
|
|
|
install -Dm755 usrbin/gitstatusd $out/bin/gitstatusd
|
2019-05-08 03:47:04 +02:00
|
|
|
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 21:38:17 +01:00
|
|
|
maintainers = with maintainers; [ mmlb hexa ];
|
2019-05-08 03:47:04 +02:00
|
|
|
};
|
|
|
|
}
|