mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-22 14:45:27 +00:00
47b14f340a
Also add myself as maintainer.
31 lines
853 B
Nix
31 lines
853 B
Nix
{callPackage, stdenv, fetchFromGitHub, ...}:
|
|
|
|
stdenv.mkDerivation {
|
|
pname = "gitstatus";
|
|
version = "unstable-2020-01-28";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "romkatv";
|
|
repo = "gitstatus";
|
|
rev = "edb99aa7b86d10ad0a1cfe25135b57c8031d82ad";
|
|
sha256 = "1nys74qswwc7hn9cv0j7syvbpnw0f15chc9pi11him4d6lsflrfd";
|
|
};
|
|
|
|
buildInputs = [ (callPackage ./romkatv_libgit2.nix {}) ];
|
|
patchPhase = ''
|
|
sed -i "1i GITSTATUS_DAEMON=$out/bin/gitstatusd" gitstatus.plugin.zsh
|
|
'';
|
|
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 = with maintainers; [ mmlb hexa ];
|
|
};
|
|
}
|