b5f92a349c
GitOrigin-RevId: 7c9cc5a6e5d38010801741ac830a3f8fd667a7a0
51 lines
995 B
Nix
51 lines
995 B
Nix
{ lib, stdenv
|
|
, fetchFromGitHub
|
|
, makeWrapper
|
|
, coreutils
|
|
, gawk
|
|
, git
|
|
, gnugrep
|
|
, ncurses
|
|
, util-linux
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "git-quick-stats";
|
|
version = "2.5.1";
|
|
|
|
src = fetchFromGitHub {
|
|
repo = "git-quick-stats";
|
|
owner = "arzzen";
|
|
rev = version;
|
|
sha256 = "sha256-IIvpUKJxeJYKmTSzEEMZPV6JElt6Ww/Whx3ytNcha7k=";
|
|
};
|
|
|
|
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;
|
|
};
|
|
}
|