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

37 lines
933 B
Nix
Raw Normal View History

2021-02-12 03:17:31 +00:00
{ lib, stdenv, fetchFromGitHub, unixtools, which }:
2014-11-25 21:40:25 +00:00
stdenv.mkDerivation rec {
pname = "git-extras";
2021-03-27 11:09:44 +00:00
version = "6.2.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;
2021-03-27 11:09:44 +00:00
sha256 = "sha256-ACuTb1DGft2/32Ezg23jhpl9yua5kUTZ2kKL8KHU+BU=";
2014-11-25 21:40:25 +00:00
};
nativeBuildInputs = [ unixtools.column which ];
2017-10-22 12:09:28 +00:00
dontBuild = true;
2014-11-25 21:40:25 +00:00
preInstall = ''
patchShebangs .
'';
installFlags = [ "PREFIX=${placeholder "out"}" ];
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-02-12 03:17:31 +00:00
maintainers = with maintainers; [ spwhitt cko ];
2014-11-25 21:40:25 +00:00
};
}