git.iko.soy/typeable/nixpkgs
on master help sign in
gitstats: init at 2016-01-08

Upstream does not make releases, using latest commit from master branch.

commit070dccae7bbb61166fabd7b1cea15c46894ac3aa authorBjørn Forsman <bjorn.forsman@gmail.com> dateSun 28 Feb 2016, 13:31 (11 years ago) parentfde23a0
2 files changed+41
pkgs/applications/version-management/gitstats/default.nix+39 pkgs/top-level/all-packages.nix+2
pkgs/applications/version-management/gitstats/default.nixnew file+39
@@ -0,0 +1,39 @@
1+{ stdenv, fetchzip, perl, python, gnuplot, coreutils, gnugrep }:
2+
3+stdenv.mkDerivation rec {
4+ name = "gitstats-${version}";
5+ version = "2016-01-08";
6+
7+ # upstream does not make releases
8+ src = fetchzip {
9+ url = "https://github.com/hoxu/gitstats/archive/55c5c285558c410bb35ebf421245d320ab9ee9fa.zip";
10+ sha256 = "1bfcwhksylrpm88vyp33qjby4js31zcxy7w368dzjv4il3fh2i59";
11+ name = name + "-src";
12+ };
13+
14+ buildInputs = [ perl python ];
15+
16+ postPatch = ''
17+ sed -e "s|gnuplot_cmd = .*|gnuplot_cmd = '${gnuplot}/bin/gnuplot'|" \
18+ -e "s|\<wc\>|${coreutils}/bin/wc|g" \
19+ -e "s|\<grep\>|${gnugrep}/bin/grep|g" \
20+ -i gitstats
21+ '';
22+
23+ buildPhase = ''
24+ make man VERSION="${version}"
25+ '';
26+
27+ installPhase = ''
28+ make install PREFIX="$out" VERSION="${version}"
29+ install -Dm644 doc/gitstats.1 "$out"/share/man/man1/gitstats.1
30+ '';
31+
32+ meta = with stdenv.lib; {
33+ homepage = http://gitstats.sourceforge.net/;
34+ description = "Git history statistics generator";
35+ license = licenses.gpl2Plus;
36+ platforms = platforms.all;
37+ maintainers = [ maintainers.bjornfor ];
38+ };
39+}
pkgs/top-level/all-packages.nix+2
@@ -1730,6 +1730,8 @@ let
17301730
17311731 gitlab-workhorse = callPackage ../applications/version-management/gitlab-workhorse { };
17321732
1733+ gitstats = callPackage ../applications/version-management/gitstats { };
1734+
17331735 git-latexdiff = callPackage ../tools/typesetting/git-latexdiff { };
17341736
17351737 glusterfs = callPackage ../tools/filesystems/glusterfs { };