2021-02-13 14:23:35 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, unixtools, which }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "git-extras";
|
2021-10-04 12:37:57 +00:00
|
|
|
version = "6.3.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-02-13 14:23:35 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "tj";
|
|
|
|
repo = "git-extras";
|
|
|
|
rev = version;
|
2021-10-04 12:37:57 +00:00
|
|
|
sha256 = "sha256-mmvDsK+SgBXQSKNKuPt+K4sgtdrtqPx9Df2E3kKLdJM=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-10-01 09:20:50 +00:00
|
|
|
postPatch = ''
|
|
|
|
patchShebangs check_dependencies.sh
|
|
|
|
'';
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-10-01 09:20:50 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
unixtools.column
|
|
|
|
which
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-10-01 09:20:50 +00:00
|
|
|
dontBuild = true;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-10-01 09:20:50 +00:00
|
|
|
installFlags = [
|
|
|
|
"PREFIX=${placeholder "out"}"
|
|
|
|
"SYSCONFDIR=${placeholder "out"}/share"
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
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;
|
2021-10-04 12:37:57 +00:00
|
|
|
maintainers = with maintainers; [ spwhitt cko SuperSandro2000 ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|