13 stdenv.mkDerivation rec {
15 version = "2016-01-08";
17 # upstream does not make releases
18 src = fetchFromGitHub {
21 rev = "55c5c285558c410bb35ebf421245d320ab9ee9fa";
22 sha256 = "sha256-qUQB3aCRbPkbMoMf39kPQ0vil8RjXL8RqjdTryfkzK0=";
26 # make gitstats compatible with python3
27 # https://github.com/hoxu/gitstats/pull/105
29 name = "convert-gitstats-to-use-python3.patch";
30 url = "https://github.com/hoxu/gitstats/commit/ca415668ce6b739ca9fefba6acd29c63b89f4211.patch";
31 hash = "sha256-sgjoj8eQ5CxQBffmhqymsmXb8peuaSbfFoWciLK3LOo=";
35 nativeBuildInputs = [ installShellFiles perl ];
37 buildInputs = [ python3 ];
42 sed -e "s|gnuplot_cmd = .*|gnuplot_cmd = '${gnuplot}/bin/gnuplot'|" \
43 -e "s|\<wc\>|${coreutils}/bin/wc|g" \
44 -e "s|\<grep\>|${gnugrep}/bin/grep|g" \
53 buildFlags = [ "man" ];
56 installManPage doc/gitstats.1
60 homepage = "https://gitstats.sourceforge.net/";
61 description = "Git history statistics generator";
62 license = licenses.gpl2Plus;
63 platforms = platforms.all;
64 maintainers = with maintainers; [ bjornfor ];