2016-11-09 10:38:21 +00:00
|
|
|
{ stdenv, fetchurl, python2, git }:
|
2008-07-09 17:21:03 +01:00
|
|
|
|
2011-09-15 12:04:00 +01:00
|
|
|
let
|
2018-03-29 16:53:42 +01:00
|
|
|
name = "stgit-${version}";
|
|
|
|
version = "0.18";
|
2011-09-15 12:04:00 +01:00
|
|
|
in
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
inherit name;
|
|
|
|
|
|
|
|
src = fetchurl {
|
2018-03-29 16:53:42 +01:00
|
|
|
url = "https://github.com/ctmarinas/stgit/archive/v${version}.tar.gz";
|
|
|
|
sha256 = "19fk6vw3pgp2a98wpd4j3kyiyll5dy9bi4921wq1mrky0l53mj00";
|
2008-07-09 17:21:03 +01:00
|
|
|
};
|
|
|
|
|
2016-11-09 10:38:21 +00:00
|
|
|
buildInputs = [ python2 git ];
|
2011-09-15 12:04:00 +01:00
|
|
|
|
|
|
|
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 = {
|
2017-08-01 21:03:30 +01:00
|
|
|
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";
|
|
|
|
|
2016-05-16 21:30:20 +01:00
|
|
|
maintainers = with stdenv.lib.maintainers; [ the-kenny ];
|
2011-09-15 12:04:00 +01:00
|
|
|
platforms = stdenv.lib.platforms.unix;
|
2008-07-09 17:21:03 +01:00
|
|
|
};
|
|
|
|
}
|