@@ -1,23 +1,30 @@
1−{ fetchgit, python2Packages, stdenv, git, graphviz }:
1+{ fetchFromGitHub, python2Packages, stdenv, git, graphviz }:
22
33python2Packages.buildPythonApplication rec {
4− pname = "git-big-picture";
5− version = "0.9.0";
4+ pname = "git-big-picture";
5+ version = "0.9.0";
66
7− name = "${pname}-${version}";
7+ name = "${pname}-${version}";
88
9− src = fetchgit {
10− url = "https://github.com/esc/${pname}.git";
11− rev = "fbe3b9504e255da859067fd58e90d849d63e5381";
12− sha256 = "1h283gzs4nx8lrarmr454zza52cilmnbdrqn1n33v3cn1rayl3c9";
13− };
9+ src = fetchFromGitHub {
10+ owner = "esc";
11+ repo = pname;
12+ rev = "v${version}";
13+ sha256 = "1h283gzs4nx8lrarmr454zza52cilmnbdrqn1n33v3cn1rayl3c9";
14+ };
15+
16+ buildInputs = [ git graphviz ];
1417
15− propagatedBuildInputs = [ git graphviz ];
18+ postFixup = ''
19+ wrapProgram $out/bin/git-big-picture \
20+ --prefix PATH ":" ${ stdenv.lib.makeBinPath buildInputs }
21+ '';
1622
1723 meta = {
1824 description = "Tool for visualization of Git repositories.";
1925 homepage = https://github.com/esc/git-big-picture;
2026 license = stdenv.lib.licenses.gpl3;
2127 platforms = stdenv.lib.platforms.linux;
28+ maintainers = [ stdenv.lib.maintainers.nthorne ];
2229 };
2330}