2020-07-07 18:33:16 -07:00
|
|
|
{ stdenv, python3Packages, fetchFromGitHub, git, installShellFiles }:
|
2008-07-09 09:21:03 -07:00
|
|
|
|
2020-06-27 14:54:57 -07:00
|
|
|
python3Packages.buildPythonApplication rec {
|
|
|
|
pname = "stgit";
|
2020-07-07 08:09:40 -07:00
|
|
|
version = "0.23";
|
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-07-07 08:09:40 -07:00
|
|
|
sha256 = "1r9y8qnl6kdvq61788pnfhhgyv2xrnyrizbhy4qz4l1bpqkwfr2r";
|
2008-07-09 09:21:03 -07:00
|
|
|
};
|
|
|
|
|
2020-07-07 18:33:16 -07:00
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
2011-09-15 04:04:00 -07:00
|
|
|
|
2020-07-07 18:33:16 -07:00
|
|
|
checkInputs = [ git ];
|
2008-07-09 09:21:03 -07:00
|
|
|
|
2011-09-15 04:04:00 -07:00
|
|
|
postInstall = ''
|
2020-07-07 18:33:16 -07:00
|
|
|
installShellCompletion $out/share/stgit/completion/stg.fish
|
|
|
|
installShellCompletion --name stg $out/share/stgit/completion/stgit.bash
|
|
|
|
installShellCompletion --name _stg $out/share/stgit/completion/stgit.zsh
|
2008-08-07 10:30:35 -07:00
|
|
|
'';
|
2008-07-09 09:21:03 -07:00
|
|
|
|
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
|
|
|
};
|
|
|
|
}
|