generated using https://git.kybe.xyz/2kybe3/nixpkgs-github-redirect continuation of: #537889
55 lines
1.0 KiB
Nix
55 lines
1.0 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
makeWrapper,
|
|
coreutils,
|
|
gawk,
|
|
git,
|
|
gnugrep,
|
|
ncurses,
|
|
util-linux,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "git-quick-stats";
|
|
version = "2.8.0";
|
|
|
|
src = fetchFromGitHub {
|
|
repo = "git-quick-stats";
|
|
owner = "git-quick-stats";
|
|
rev = finalAttrs.version;
|
|
sha256 = "sha256-YVvlrlNRDDci7fH9LW4NxZcIkakVgvKe9FhJ2gCfoXg=";
|
|
};
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
installFlags = [
|
|
"PREFIX=${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 = {
|
|
homepage = "https://github.com/git-quick-stats/git-quick-stats";
|
|
description = "Simple and efficient way to access various statistics in git repository";
|
|
platforms = lib.platforms.all;
|
|
maintainers = [ lib.maintainers.kmein ];
|
|
license = lib.licenses.mit;
|
|
mainProgram = "git-quick-stats";
|
|
};
|
|
})
|