nixpkgs/pkgs/applications/version-management/git-extras/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

48 lines
1.0 KiB
Nix
Raw Normal View History

{ lib
, stdenv
, fetchFromGitHub
, unixtools
, which
}:
2014-11-25 21:40:25 +00:00
stdenv.mkDerivation rec {
pname = "git-extras";
2022-10-07 10:45:18 +00:00
version = "6.5.0";
2014-11-25 21:40:25 +00:00
2021-02-12 03:17:31 +00:00
src = fetchFromGitHub {
owner = "tj";
repo = "git-extras";
rev = version;
2022-10-07 10:45:18 +00:00
sha256 = "sha256-7VNkIFjz4stRT48a9uXks84W7/tP3p7esMJKnIe1O+8=";
2014-11-25 21:40:25 +00:00
};
postPatch = ''
patchShebangs check_dependencies.sh
'';
nativeBuildInputs = [
unixtools.column
which
];
2014-11-25 21:40:25 +00:00
dontBuild = true;
installFlags = [
"PREFIX=${placeholder "out"}"
"SYSCONFDIR=${placeholder "out"}/share"
];
2014-11-25 21:40:25 +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
'';
meta = with lib; {
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;
2021-10-03 21:28:36 +00:00
maintainers = with maintainers; [ spwhitt cko SuperSandro2000 ];
2014-11-25 21:40:25 +00:00
};
}