d30c97096b
because there are so many freaking commands !
28 lines
770 B
Nix
28 lines
770 B
Nix
{ stdenv, fetchurl }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "git-extras-${version}";
|
|
version = "4.6.0";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/tj/git-extras/archive/${version}.tar.gz";
|
|
sha256 = "1jp5wi2h4jqbrjv0iqa45s0f9h3n5k1dxs89jkhg5n5k9jjs7fp3";
|
|
};
|
|
|
|
dontBuild = true;
|
|
|
|
installFlags = [ "DESTDIR=$(out) PREFIX=" ];
|
|
|
|
postInstall = ''
|
|
install -D etc/git-extras-completion.zsh $out/share/zsh/site-functions/_git_extras
|
|
'';
|
|
|
|
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 ];
|
|
};
|
|
}
|