blob: 36ea373177ace2f886daaadaeb852a89c2936fe1 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
{ stdenv, python3, python3Packages, fetchFromGitHub, git }:
python3Packages.buildPythonApplication rec {
pname = "stgit";
version = "0.22";
src = fetchFromGitHub {
owner = "ctmarinas";
repo = "stgit";
rev = "v${version}";
sha256 = "0xpvs5fa50rrvl2c8naha1nblk5ip2mgg63a9srqqxfx6z8qmrfz";
};
nativeBuildInputs = [ git ];
makeFlags = [ "prefix=$$out" ];
postInstall = ''
mkdir -p "$out/etc/bash_completion.d/"
ln -s ../../share/stgit/completion/stgit-completion.bash "$out/etc/bash_completion.d/"
'';
doCheck = false;
checkTarget = "test";
meta = with stdenv.lib; {
description = "A patch manager implemented on top of Git";
homepage = "http://procode.org/stgit/";
license = licenses.gpl2;
platforms = platforms.unix;
};
}
|