2020-08-10 17:07:08 +02:00
|
|
|
{ stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, makeWrapper
|
|
|
|
, coreutils
|
|
|
|
, gawk
|
|
|
|
, git
|
|
|
|
, gnugrep
|
|
|
|
, ncurses
|
2020-11-24 16:29:28 +01:00
|
|
|
, util-linux
|
2020-08-10 17:07:08 +02:00
|
|
|
}:
|
|
|
|
|
2019-06-02 00:40:22 +02:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "git-quick-stats";
|
2021-01-18 22:29:40 +01:00
|
|
|
version = "2.1.5";
|
2020-08-10 17:07:08 +02:00
|
|
|
|
2019-06-02 00:40:22 +02:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
repo = "git-quick-stats";
|
|
|
|
owner = "arzzen";
|
2019-09-09 01:38:31 +02:00
|
|
|
rev = version;
|
2021-01-18 22:29:40 +01:00
|
|
|
sha256 = "sha256-d5B+SSUXtOD4x+dChQsUCkiHuHcW3lOrL4QhQekY7cA=";
|
2019-06-02 00:40:22 +02:00
|
|
|
};
|
2020-08-10 17:07:08 +02:00
|
|
|
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
|
|
|
|
installFlags = [
|
|
|
|
"PREFIX=${builtins.placeholder "out"}"
|
|
|
|
];
|
|
|
|
|
|
|
|
postInstall =
|
|
|
|
let
|
|
|
|
path = stdenv.lib.makeBinPath [
|
|
|
|
coreutils
|
|
|
|
gawk
|
|
|
|
git
|
|
|
|
gnugrep
|
|
|
|
ncurses
|
2020-11-24 16:29:28 +01:00
|
|
|
util-linux
|
2020-08-10 17:07:08 +02:00
|
|
|
];
|
|
|
|
in
|
|
|
|
''
|
|
|
|
wrapProgram $out/bin/git-quick-stats --suffix PATH : ${path}
|
|
|
|
'';
|
|
|
|
|
2019-06-02 00:40:22 +02: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;
|
|
|
|
};
|
|
|
|
}
|