2021-02-05 17:12:51 +00:00
|
|
|
{ lib, python3Packages, fetchFromGitHub, git, installShellFiles }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-07-18 16:06:22 +00:00
|
|
|
python3Packages.buildPythonApplication rec {
|
|
|
|
pname = "stgit";
|
|
|
|
version = "0.23";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ctmarinas";
|
|
|
|
repo = "stgit";
|
|
|
|
rev = "v${version}";
|
2020-07-18 16:06:22 +00:00
|
|
|
sha256 = "1r9y8qnl6kdvq61788pnfhhgyv2xrnyrizbhy4qz4l1bpqkwfr2r";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2020-07-18 16:06:22 +00:00
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-07-18 16:06:22 +00:00
|
|
|
checkInputs = [ git ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
postInstall = ''
|
2020-07-18 16:06:22 +00: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
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "A patch manager implemented on top of Git";
|
|
|
|
homepage = "http://procode.org/stgit/";
|
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|