1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-15 17:25:11 +00:00
nixpkgs/pkgs/development/tools/git-quick-stats/default.nix
2021-04-29 23:52:09 -04:00

52 lines
995 B
Nix

{ lib, stdenv
, fetchFromGitHub
, makeWrapper
, coreutils
, gawk
, git
, gnugrep
, ncurses
, util-linux
}:
stdenv.mkDerivation rec {
pname = "git-quick-stats";
version = "2.1.9";
src = fetchFromGitHub {
repo = "git-quick-stats";
owner = "arzzen";
rev = version;
sha256 = "sha256-2rrwbEXwBBuussybCZFbAEjNwm/ztbXw1jUlTnxPINA=";
};
nativeBuildInputs = [ makeWrapper ];
installFlags = [
"PREFIX=${builtins.placeholder "out"}"
];
postInstall =
let
path = lib.makeBinPath [
coreutils
gawk
git
gnugrep
ncurses
util-linux
];
in
''
wrapProgram $out/bin/git-quick-stats --suffix PATH : ${path}
'';
meta = with lib; {
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;
};
}