1{ stdenv, fetchurl, python2, git }: 2 3let 4 name = "stgit-0.17.1"; 5in 6stdenv.mkDerivation { 7 inherit name; 8 9 src = fetchurl { 10 url = "http://download.gna.org/stgit/${name}.tar.gz"; 11 sha256 = "1pka0ns9x0kabn036zsf0mwmwiynckhnva51kgxsch9fqah6acyl"; 12 }; 13 14 buildInputs = [ python2 git ]; 15 16 makeFlags = "prefix=$$out"; 17 18 postInstall = '' 19 mkdir -p "$out/etc/bash_completion.d/" 20 ln -s ../../share/stgit/completion/stgit-completion.bash "$out/etc/bash_completion.d/" 21 ''; 22 23 doCheck = false; 24 checkTarget = "test"; 25 26 meta = { 27 homepage = http://procode.org/stgit/; 28 description = "A patch manager implemented on top of Git"; 29 license = "GPL"; 30 31 maintainers = with stdenv.lib.maintainers; [ the-kenny ]; 32 platforms = stdenv.lib.platforms.unix; 33 }; 34}