gitAndTools.gitstatus: init at unstable-2019-05-06

This commit is contained in:
Manuel Mendez 2019-05-07 21:47:04 -04:00
parent 64f7cb24d5
commit c9d1a0d252
3 changed files with 51 additions and 0 deletions

View File

@ -127,6 +127,8 @@ let
gitflow = callPackage ./gitflow { };
gitstatus = callPackage ./gitstatus { };
grv = callPackage ./grv { };
hub = callPackage ./hub {

View File

@ -0,0 +1,30 @@
{callPackage, stdenv, fetchFromGitHub, ...}:
stdenv.mkDerivation rec {
pname = "gitstatus";
version = "unstable-2019-05-06";
src = fetchFromGitHub {
owner = "romkatv";
repo = "gitstatus";
rev = "9c791f93c23c04dadfab8b4309a863b62a6ee424";
sha256 = "0jbdrgl62x6j920h72n2q6304fb6gdgnmllpv4aa76m13b9qhgq6";
};
buildInputs = [ (callPackage ./romkatv_libgit2.nix {}) ];
patchPhase = ''
sed -i "s|local daemon.*|local 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 = [ maintainers.mmlb ];
};
}

View File

@ -0,0 +1,19 @@
{fetchFromGitHub, libgit2_0_27, ...}:
libgit2_0_27.overrideAttrs (oldAttrs: rec {
cmakeFlags = oldAttrs.cmakeFlags ++ [
"-DUSE_BUNDLED_ZLIB=ON"
"-DUSE_ICONV=OFF"
"-DBUILD_CLAR=OFF"
"-DUSE_SSH=OFF"
"-DUSE_HTTPS=OFF"
"-DBUILD_SHARED_LIBS=OFF"
"-DUSE_EXT_HTTP_PARSER=OFF"
];
src = fetchFromGitHub {
owner = "romkatv";
repo = "libgit2";
rev = "aab6c56e6766fa752bef00c745067d875925fc89";
sha256 = "1yqqhpi5xi6s86411sixw4yq5c6n2v8pdh447c8b7q5lfc089lvl";
};
})