mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-01 03:12:51 +00:00
Merge pull request #61116 from mmlb/add-gitstatus
gitAndTools.gitstatus: init at 20190506
This commit is contained in:
commit
3213c6ca3d
@ -127,6 +127,8 @@ let
|
||||
|
||||
gitflow = callPackage ./gitflow { };
|
||||
|
||||
gitstatus = callPackage ./gitstatus { };
|
||||
|
||||
grv = callPackage ./grv { };
|
||||
|
||||
hub = callPackage ./hub {
|
||||
|
@ -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 ];
|
||||
};
|
||||
}
|
@ -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";
|
||||
};
|
||||
})
|
Loading…
Reference in New Issue
Block a user