git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #95088 from danieldk/git-quick-stats-wrap

git-quick-stats: properly wrap

commit08bc81bdc5495328f108f02dfe5df673a80e7e70 authorDaniël de Kok <me@danieldk.eu> dateFri 14 Aug 2020, 08:36 (6 years ago) parent0c135e55e8076a
1 file changed+34−2
pkgs/development/tools/git-quick-stats/default.nix+34−2
pkgs/development/tools/git-quick-stats/default.nix+34−2
@@ -1,14 +1,46 @@
1−{ stdenv, fetchFromGitHub }:
1+{ stdenv
2+, fetchFromGitHub
3+, makeWrapper
4+, coreutils
5+, gawk
6+, git
7+, gnugrep
8+, ncurses
9+, utillinux
10+}:
11+
212stdenv.mkDerivation rec {
313 pname = "git-quick-stats";
414 version = "2.1.4";
15+
516 src = fetchFromGitHub {
617 repo = "git-quick-stats";
718 owner = "arzzen";
819 rev = version;
920 sha256 = "0fg0fijghcz7hvbc9y8dfksz0qmsz700kc2mfb03y90kja99v68y";
1021 };
11− PREFIX = builtins.placeholder "out";
22+
23+ nativeBuildInputs = [ makeWrapper ];
24+
25+ installFlags = [
26+ "PREFIX=${builtins.placeholder "out"}"
27+ ];
28+
29+ postInstall =
30+ let
31+ path = stdenv.lib.makeBinPath [
32+ coreutils
33+ gawk
34+ git
35+ gnugrep
36+ ncurses
37+ utillinux
38+ ];
39+ in
40+ ''
41+ wrapProgram $out/bin/git-quick-stats --suffix PATH : ${path}
42+ '';
43+
1244 meta = with stdenv.lib; {
1345 homepage = "https://github.com/arzzen/git-quick-stats";
1446 description = "A simple and efficient way to access various statistics in git repository";