2011-09-15 12:04:00 +01:00
|
|
|
{ stdenv, fetchurl, python, git }:
|
2008-07-09 17:21:03 +01:00
|
|
|
|
2011-09-15 12:04:00 +01:00
|
|
|
let
|
2014-04-09 11:17:23 +01:00
|
|
|
name = "stgit-0.17.1";
|
2011-09-15 12:04:00 +01:00
|
|
|
in
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
inherit name;
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://download.gna.org/stgit/${name}.tar.gz";
|
2014-04-09 11:17:23 +01:00
|
|
|
sha256 = "1pka0ns9x0kabn036zsf0mwmwiynckhnva51kgxsch9fqah6acyl";
|
2008-07-09 17:21:03 +01:00
|
|
|
};
|
|
|
|
|
2011-09-15 12:04:00 +01:00
|
|
|
buildInputs = [ python git ];
|
|
|
|
|
|
|
|
makeFlags = "prefix=$$out";
|
2008-07-09 17:21:03 +01:00
|
|
|
|
2011-09-15 12:04:00 +01:00
|
|
|
postInstall = ''
|
2012-01-18 20:16:00 +00:00
|
|
|
mkdir -p "$out/etc/bash_completion.d/"
|
2011-09-15 12:04:00 +01:00
|
|
|
ln -s ../../share/stgit/completion/stgit-completion.bash "$out/etc/bash_completion.d/"
|
2008-08-07 18:30:35 +01:00
|
|
|
'';
|
2008-07-09 17:21:03 +01:00
|
|
|
|
2011-09-15 13:47:49 +01:00
|
|
|
doCheck = false;
|
2011-09-15 12:04:00 +01:00
|
|
|
checkTarget = "test";
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = "http://procode.org/stgit/";
|
2015-04-30 16:05:14 +01:00
|
|
|
description = "A patch manager implemented on top of Git";
|
2011-09-15 12:04:00 +01:00
|
|
|
license = "GPL";
|
|
|
|
|
2013-12-09 00:15:16 +00:00
|
|
|
maintainers = with stdenv.lib.maintainers; [ simons the-kenny ];
|
2011-09-15 12:04:00 +01:00
|
|
|
platforms = stdenv.lib.platforms.unix;
|
2008-07-09 17:21:03 +01:00
|
|
|
};
|
|
|
|
}
|