2021-02-11 19:17:31 -08:00
|
|
|
{ lib, stdenv, fetchFromGitHub, unixtools, which }:
|
2014-11-25 13:40:25 -08:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 05:41:18 -07:00
|
|
|
pname = "git-extras";
|
2020-10-31 17:15:25 -07:00
|
|
|
version = "6.1.0";
|
2014-11-25 13:40:25 -08:00
|
|
|
|
2021-02-11 19:17:31 -08:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "tj";
|
|
|
|
repo = "git-extras";
|
|
|
|
rev = version;
|
2020-10-31 17:15:25 -07:00
|
|
|
sha256 = "12ff9rhgqd71xm72r385hx0h8g75hz0ag0adzqcwfa54k0lhrrrz";
|
2014-11-25 13:40:25 -08:00
|
|
|
};
|
|
|
|
|
2019-11-12 10:14:34 -08:00
|
|
|
nativeBuildInputs = [ unixtools.column which ];
|
|
|
|
|
2017-10-22 05:09:28 -07:00
|
|
|
dontBuild = true;
|
2014-11-25 13:40:25 -08:00
|
|
|
|
2019-11-12 10:14:34 -08:00
|
|
|
preInstall = ''
|
|
|
|
patchShebangs .
|
|
|
|
'';
|
|
|
|
|
|
|
|
installFlags = [ "PREFIX=${placeholder "out"}" ];
|
2014-11-25 13:40:25 -08:00
|
|
|
|
2018-09-11 02:48:19 -07:00
|
|
|
postInstall = ''
|
2019-11-12 10:14:34 -08:00
|
|
|
# bash completion is already handled by make install
|
2018-09-11 02:48:19 -07:00
|
|
|
install -D etc/git-extras-completion.zsh $out/share/zsh/site-functions/_git_extras
|
|
|
|
'';
|
|
|
|
|
2021-01-10 23:54:33 -08:00
|
|
|
meta = with lib; {
|
2020-03-31 18:11:51 -07:00
|
|
|
homepage = "https://github.com/tj/git-extras";
|
2014-11-25 13:40:25 -08:00
|
|
|
description = "GIT utilities -- repo summary, repl, changelog population, author commit percentages and more";
|
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.all;
|
2021-02-11 19:17:31 -08:00
|
|
|
maintainers = with maintainers; [ spwhitt cko ];
|
2014-11-25 13:40:25 -08:00
|
|
|
};
|
|
|
|
}
|