2020-06-27 14:54:57 -07:00
|
|
|
{ stdenv, python3, python3Packages, fetchFromGitHub, git }:
|
2008-07-09 09:21:03 -07:00
|
|
|
|
2020-06-27 14:54:57 -07:00
|
|
|
python3Packages.buildPythonApplication rec {
|
|
|
|
pname = "stgit";
|
2020-03-12 00:35:01 -07:00
|
|
|
version = "0.22";
|
2011-09-15 04:04:00 -07:00
|
|
|
|
2018-10-03 04:54:02 -07:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ctmarinas";
|
|
|
|
repo = "stgit";
|
|
|
|
rev = "v${version}";
|
2020-03-12 00:35:01 -07:00
|
|
|
sha256 = "0xpvs5fa50rrvl2c8naha1nblk5ip2mgg63a9srqqxfx6z8qmrfz";
|
2008-07-09 09:21:03 -07:00
|
|
|
};
|
|
|
|
|
2020-06-27 14:54:57 -07:00
|
|
|
nativeBuildInputs = [ git ];
|
2011-09-15 04:04:00 -07:00
|
|
|
|
2019-10-27 06:03:25 -07:00
|
|
|
makeFlags = [ "prefix=$$out" ];
|
2008-07-09 09:21:03 -07:00
|
|
|
|
2011-09-15 04:04:00 -07:00
|
|
|
postInstall = ''
|
2012-01-18 12:16:00 -08:00
|
|
|
mkdir -p "$out/etc/bash_completion.d/"
|
2011-09-15 04:04:00 -07:00
|
|
|
ln -s ../../share/stgit/completion/stgit-completion.bash "$out/etc/bash_completion.d/"
|
2008-08-07 10:30:35 -07:00
|
|
|
'';
|
2008-07-09 09:21:03 -07:00
|
|
|
|
2011-09-15 05:47:49 -07:00
|
|
|
doCheck = false;
|
2011-09-15 04:04:00 -07:00
|
|
|
checkTarget = "test";
|
|
|
|
|
2018-10-03 04:54:02 -07:00
|
|
|
meta = with stdenv.lib; {
|
2015-04-30 08:05:14 -07:00
|
|
|
description = "A patch manager implemented on top of Git";
|
2020-03-12 00:35:01 -07:00
|
|
|
homepage = "http://procode.org/stgit/";
|
2018-10-03 04:54:02 -07:00
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.unix;
|
2008-07-09 09:21:03 -07:00
|
|
|
};
|
|
|
|
}
|