nixpkgs/pkgs/applications/version-management/git-and-tools/git-extras/default.nix

35 lines
938 B
Nix
Raw Normal View History

{ stdenv, fetchzip, unixtools, which }:
2014-11-25 21:40:25 +00:00
stdenv.mkDerivation rec {
pname = "git-extras";
2020-11-01 00:15:25 +00:00
version = "6.1.0";
2014-11-25 21:40:25 +00:00
src = fetchzip {
2014-11-25 21:40:25 +00:00
url = "https://github.com/tj/git-extras/archive/${version}.tar.gz";
2020-11-01 00:15:25 +00:00
sha256 = "12ff9rhgqd71xm72r385hx0h8g75hz0ag0adzqcwfa54k0lhrrrz";
2014-11-25 21:40:25 +00:00
};
nativeBuildInputs = [ unixtools.column which ];
2017-10-22 13:09:28 +01:00
dontBuild = true;
2014-11-25 21:40:25 +00:00
preInstall = ''
patchShebangs .
'';
installFlags = [ "PREFIX=${placeholder "out"}" ];
2014-11-25 21:40:25 +00:00
postInstall = ''
# bash completion is already handled by make install
install -D etc/git-extras-completion.zsh $out/share/zsh/site-functions/_git_extras
'';
2014-11-25 21:40:25 +00:00
meta = with stdenv.lib; {
homepage = "https://github.com/tj/git-extras";
2014-11-25 21:40:25 +00:00
description = "GIT utilities -- repo summary, repl, changelog population, author commit percentages and more";
license = licenses.mit;
platforms = platforms.all;
maintainers = [ maintainers.spwhitt maintainers.cko ];
2014-11-25 21:40:25 +00:00
};
}