3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/version-management/git-and-tools/git-extras/default.nix
volth 46420bbaa3 treewide: name -> pname (easy cases) (#66585)
treewide replacement of

stdenv.mkDerivation rec {
  name = "*-${version}";
  version = "*";

to pname
2019-08-15 13:41:18 +01:00

28 lines
776 B
Nix

{ stdenv, fetchurl }:
stdenv.mkDerivation rec {
pname = "git-extras";
version = "4.7.0";
src = fetchurl {
url = "https://github.com/tj/git-extras/archive/${version}.tar.gz";
sha256 = "0pab4f5kmmcn333aswkgndf1fgilc41h8h0rk3lviz0yi8j59vaq";
};
dontBuild = true;
installFlags = [ "DESTDIR=${placeholder "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 ];
};
}