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
|
|
|
|
name = "stgit-0.15";
|
|
|
|
in
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
inherit name;
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://download.gna.org/stgit/${name}.tar.gz";
|
|
|
|
sha256 = "0kgq9x0i7riwcl1lmmm40z0jiz5agr1kqxm2byv1qsf0q1ny47v9";
|
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 = ''
|
|
|
|
ensureDir "$out/etc/bash_completion.d/"
|
|
|
|
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/";
|
|
|
|
description = "StGit is a patch manager implemented on top of Git";
|
|
|
|
license = "GPL";
|
|
|
|
|
|
|
|
maintainers = [ stdenv.lib.maintainers.simons ];
|
|
|
|
platforms = stdenv.lib.platforms.unix;
|
2008-07-09 17:21:03 +01:00
|
|
|
};
|
|
|
|
}
|