7e47f3658e
GitOrigin-RevId: 1925c603f17fc89f4c8f6bf6f631a802ad85d784
52 lines
1 KiB
Nix
52 lines
1 KiB
Nix
{ lib, stdenv
|
|
, fetchFromGitHub
|
|
, makeWrapper
|
|
, coreutils
|
|
, gawk
|
|
, git
|
|
, gnugrep
|
|
, ncurses
|
|
, util-linux
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "git-quick-stats";
|
|
version = "2.5.7";
|
|
|
|
src = fetchFromGitHub {
|
|
repo = "git-quick-stats";
|
|
owner = "arzzen";
|
|
rev = version;
|
|
sha256 = "sha256-TGwoW4jpXbFdxk9HAZJTDhXIHhR1QEcDRCjspBv2KdQ=";
|
|
};
|
|
|
|
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 = "Simple and efficient way to access various statistics in git repository";
|
|
platforms = platforms.all;
|
|
maintainers = [ maintainers.kmein ];
|
|
license = licenses.mit;
|
|
mainProgram = "git-quick-stats";
|
|
};
|
|
}
|