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";
|
2021-04-12 18:23:04 +00:00
|
|
|
version = "1.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2021-04-12 18:23:04 +00:00
|
|
|
owner = "stacked-git";
|
2020-04-24 23:36:52 +00:00
|
|
|
repo = "stgit";
|
|
|
|
rev = "v${version}";
|
2021-04-12 18:23:04 +00:00
|
|
|
sha256 = "16q8994widg040n1ag4m82kbn3r02n39ah7dvwa7aixhw5y35vlm";
|
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";
|
2021-04-12 18:23:04 +00:00
|
|
|
homepage = "https://stacked-git.github.io/";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|