git-quick-stats: properly wrap
git-quick-stats was not properly wrapped, making it fail in pure and sandboxed environments.
This commit is contained in:
parent
e828343d7c
commit
5e8076a1f9
@ -1,14 +1,46 @@
|
|||||||
{ stdenv, fetchFromGitHub }:
|
{ stdenv
|
||||||
|
, fetchFromGitHub
|
||||||
|
, makeWrapper
|
||||||
|
, coreutils
|
||||||
|
, gawk
|
||||||
|
, git
|
||||||
|
, gnugrep
|
||||||
|
, ncurses
|
||||||
|
, utillinux
|
||||||
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "git-quick-stats";
|
pname = "git-quick-stats";
|
||||||
version = "2.1.4";
|
version = "2.1.4";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
repo = "git-quick-stats";
|
repo = "git-quick-stats";
|
||||||
owner = "arzzen";
|
owner = "arzzen";
|
||||||
rev = version;
|
rev = version;
|
||||||
sha256 = "0fg0fijghcz7hvbc9y8dfksz0qmsz700kc2mfb03y90kja99v68y";
|
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; {
|
meta = with stdenv.lib; {
|
||||||
homepage = "https://github.com/arzzen/git-quick-stats";
|
homepage = "https://github.com/arzzen/git-quick-stats";
|
||||||
description = "A simple and efficient way to access various statistics in git repository";
|
description = "A simple and efficient way to access various statistics in git repository";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user