nixpkgs/pkgs/development/tools/git-quick-stats/default.nix

52 lines
995 B
Nix
Raw Normal View History

{ lib, stdenv
, fetchFromGitHub
, makeWrapper
, coreutils
, gawk
, git
, gnugrep
, ncurses
2020-11-24 15:29:28 +00:00
, util-linux
}:
2019-06-01 22:40:22 +00:00
stdenv.mkDerivation rec {
pname = "git-quick-stats";
2021-04-30 00:49:06 +00:00
version = "2.1.9";
2019-06-01 22:40:22 +00:00
src = fetchFromGitHub {
repo = "git-quick-stats";
owner = "arzzen";
2019-09-08 23:38:31 +00:00
rev = version;
2021-04-30 00:49:06 +00:00
sha256 = "sha256-2rrwbEXwBBuussybCZFbAEjNwm/ztbXw1jUlTnxPINA=";
2019-06-01 22:40:22 +00:00
};
nativeBuildInputs = [ makeWrapper ];
installFlags = [
"PREFIX=${builtins.placeholder "out"}"
];
postInstall =
let
path = lib.makeBinPath [
coreutils
gawk
git
gnugrep
ncurses
2020-11-24 15:29:28 +00:00
util-linux
];
in
''
wrapProgram $out/bin/git-quick-stats --suffix PATH : ${path}
'';
meta = with lib; {
2019-06-01 22:40:22 +00:00
homepage = "https://github.com/arzzen/git-quick-stats";
description = "A simple and efficient way to access various statistics in git repository";
platforms = platforms.all;
maintainers = [ maintainers.kmein ];
license = licenses.mit;
};
}