2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchzip, unixtools, which }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "git-extras";
|
2020-11-03 02:18:15 +00:00
|
|
|
version = "6.1.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchzip {
|
|
|
|
url = "https://github.com/tj/git-extras/archive/${version}.tar.gz";
|
2020-11-03 02:18:15 +00:00
|
|
|
sha256 = "12ff9rhgqd71xm72r385hx0h8g75hz0ag0adzqcwfa54k0lhrrrz";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ unixtools.column which ];
|
|
|
|
|
|
|
|
dontBuild = true;
|
|
|
|
|
|
|
|
preInstall = ''
|
|
|
|
patchShebangs .
|
|
|
|
'';
|
|
|
|
|
|
|
|
installFlags = [ "PREFIX=${placeholder "out"}" ];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
# bash completion is already handled by make install
|
|
|
|
install -D etc/git-extras-completion.zsh $out/share/zsh/site-functions/_git_extras
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|