2021-01-23 12:26:19 +00:00
|
|
|
{ lib, stdenv
|
2020-08-10 16:07:08 +01:00
|
|
|
, fetchFromGitHub
|
|
|
|
, makeWrapper
|
|
|
|
, coreutils
|
|
|
|
, gawk
|
|
|
|
, git
|
|
|
|
, gnugrep
|
|
|
|
, ncurses
|
2020-11-24 15:29:28 +00:00
|
|
|
, util-linux
|
2020-08-10 16:07:08 +01:00
|
|
|
}:
|
|
|
|
|
2019-06-01 23:40:22 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "git-quick-stats";
|
2021-05-22 05:13:15 +01:00
|
|
|
version = "2.2.0";
|
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;
|
2021-05-22 05:13:15 +01:00
|
|
|
sha256 = "sha256-cE9eo8FUUNlhmBrHalFDTFK2LIQUaWFy7Gj/E2F15t4=";
|
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
|
2021-01-23 12:26:19 +00:00
|
|
|
path = lib.makeBinPath [
|
2020-08-10 16:07:08 +01:00
|
|
|
coreutils
|
|
|
|
gawk
|
|
|
|
git
|
|
|
|
gnugrep
|
|
|
|
ncurses
|
2020-11-24 15:29:28 +00:00
|
|
|
util-linux
|
2020-08-10 16:07:08 +01:00
|
|
|
];
|
|
|
|
in
|
|
|
|
''
|
|
|
|
wrapProgram $out/bin/git-quick-stats --suffix PATH : ${path}
|
|
|
|
'';
|
|
|
|
|
2021-01-23 12:26:19 +00:00
|
|
|
meta = with lib; {
|
2019-06-01 23:40:22 +01:00
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|