2019-11-12 18:14:34 +00:00
|
|
|
{ stdenv, fetchzip, unixtools, which }:
|
2014-11-25 21:40:25 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "git-extras";
|
2019-12-23 11:54:27 +00:00
|
|
|
version = "5.1.0";
|
2014-11-25 21:40:25 +00:00
|
|
|
|
2019-11-12 18:14:34 +00:00
|
|
|
src = fetchzip {
|
2014-11-25 21:40:25 +00:00
|
|
|
url = "https://github.com/tj/git-extras/archive/${version}.tar.gz";
|
2019-12-23 11:54:27 +00:00
|
|
|
sha256 = "0ja8ds9gpibrnwcf8n6cpbggwkbks0ik3z9vfx5h1yf3ln1nycky";
|
2014-11-25 21:40:25 +00:00
|
|
|
};
|
|
|
|
|
2019-11-12 18:14:34 +00:00
|
|
|
nativeBuildInputs = [ unixtools.column which ];
|
|
|
|
|
2017-10-22 13:09:28 +01:00
|
|
|
dontBuild = true;
|
2014-11-25 21:40:25 +00:00
|
|
|
|
2019-11-12 18:14:34 +00:00
|
|
|
preInstall = ''
|
|
|
|
patchShebangs .
|
|
|
|
'';
|
|
|
|
|
|
|
|
installFlags = [ "PREFIX=${placeholder "out"}" ];
|
2014-11-25 21:40:25 +00:00
|
|
|
|
2018-09-11 10:48:19 +01:00
|
|
|
postInstall = ''
|
2019-11-12 18:14:34 +00:00
|
|
|
# bash completion is already handled by make install
|
2018-09-11 10:48:19 +01:00
|
|
|
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; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/tj/git-extras";
|
2014-11-25 21:40:25 +00:00
|
|
|
description = "GIT utilities -- repo summary, repl, changelog population, author commit percentages and more";
|
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.all;
|
2016-06-25 13:21:16 +01:00
|
|
|
maintainers = [ maintainers.spwhitt maintainers.cko ];
|
2014-11-25 21:40:25 +00:00
|
|
|
};
|
|
|
|
}
|