2020-08-10 16:07:08 +01:00
|
|
|
{ stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, makeWrapper
|
|
|
|
, coreutils
|
|
|
|
, gawk
|
|
|
|
, git
|
|
|
|
, gnugrep
|
|
|
|
, ncurses
|
|
|
|
, utillinux
|
|
|
|
}:
|
|
|
|
|
2019-06-01 23:40:22 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "git-quick-stats";
|
2020-08-10 09:54:29 +01:00
|
|
|
version = "2.1.4";
|
2020-08-10 16:07:08 +01:00
|
|
|
|
2019-06-01 23:40:22 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
repo = "git-quick-stats";
|
|
|
|
owner = "arzzen";
|
2019-09-09 00:38:31 +01:00
|
|
|
rev = version;
|
2020-08-10 09:54:29 +01:00
|
|
|
sha256 = "0fg0fijghcz7hvbc9y8dfksz0qmsz700kc2mfb03y90kja99v68y";
|
2019-06-01 23:40:22 +01:00
|
|
|
};
|
2020-08-10 16:07:08 +01:00
|
|
|
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
|
|
|
|
installFlags = [
|
|
|
|
"PREFIX=${builtins.placeholder "out"}"
|
|
|
|
];
|
|
|
|
|
|
|
|
postInstall =
|
|
|
|
let
|
|
|
|
path = stdenv.lib.makeBinPath [
|
|
|
|
coreutils
|
|
|
|
gawk
|
|
|
|
git
|
|
|
|
gnugrep
|
|
|
|
ncurses
|
|
|
|
utillinux
|
|
|
|
];
|
|
|
|
in
|
|
|
|
''
|
|
|
|
wrapProgram $out/bin/git-quick-stats --suffix PATH : ${path}
|
|
|
|
'';
|
|
|
|
|
2019-06-01 23:40:22 +01:00
|
|
|
meta = with stdenv.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;
|
|
|
|
};
|
|
|
|
}
|