1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/applications/version-management/git-and-tools/git-extras/default.nix

28 lines
770 B
Nix
Raw Normal View History

2014-11-25 21:40:25 +00:00
{ stdenv, fetchurl }:
stdenv.mkDerivation rec {
name = "git-extras-${version}";
version = "4.6.0";
2014-11-25 21:40:25 +00:00
src = fetchurl {
url = "https://github.com/tj/git-extras/archive/${version}.tar.gz";
sha256 = "1jp5wi2h4jqbrjv0iqa45s0f9h3n5k1dxs89jkhg5n5k9jjs7fp3";
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
2017-10-22 13:09:28 +01:00
installFlags = [ "DESTDIR=$(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
};
}