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

28 lines
776 B
Nix
Raw Normal View History

2014-11-25 21:40:25 +00:00
{ stdenv, fetchurl }:
stdenv.mkDerivation rec {
pname = "git-extras";
version = "4.7.0";
2014-11-25 21:40:25 +00:00
src = fetchurl {
url = "https://github.com/tj/git-extras/archive/${version}.tar.gz";
sha256 = "0pab4f5kmmcn333aswkgndf1fgilc41h8h0rk3lviz0yi8j59vaq";
2014-11-25 21:40:25 +00:00
};
2017-10-22 13:09:28 +01:00
dontBuild = true;
2014-11-25 21:40:25 +00:00
installFlags = [ "DESTDIR=${placeholder "out"}" "PREFIX=" ];
2014-11-25 21:40:25 +00:00
postInstall = ''
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;
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
};
}