3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #95088 from danieldk/git-quick-stats-wrap

git-quick-stats: properly wrap
This commit is contained in:
Daniël de Kok 2020-08-14 08:36:40 +02:00 committed by GitHub
commit 08bc81bdc5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,14 +1,46 @@
{ stdenv, fetchFromGitHub }:
{ stdenv
, fetchFromGitHub
, makeWrapper
, coreutils
, gawk
, git
, gnugrep
, ncurses
, utillinux
}:
stdenv.mkDerivation rec {
pname = "git-quick-stats";
version = "2.1.4";
src = fetchFromGitHub {
repo = "git-quick-stats";
owner = "arzzen";
rev = version;
sha256 = "0fg0fijghcz7hvbc9y8dfksz0qmsz700kc2mfb03y90kja99v68y";
};
PREFIX = builtins.placeholder "out";
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}
'';
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";