nixpkgs/pkgs/applications/version-management/git-and-tools/stgit/default.nix

32 lines
897 B
Nix
Raw Normal View History

{ lib, python3Packages, fetchFromGitHub, git, installShellFiles }:
python3Packages.buildPythonApplication rec {
pname = "stgit";
2021-05-07 17:04:06 +00:00
version = "1.1";
src = fetchFromGitHub {
2021-04-09 13:09:27 +00:00
owner = "stacked-git";
repo = "stgit";
rev = "v${version}";
2021-05-07 17:04:06 +00:00
sha256 = "sha256-gfPf1yRmx1Mn1TyCBWmjQJBgXLlZrDcew32C9o6uNYk=";
};
2020-07-08 01:33:16 +00:00
nativeBuildInputs = [ installShellFiles ];
2020-07-08 01:33:16 +00:00
checkInputs = [ git ];
postInstall = ''
2020-07-08 01:33:16 +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
'';
meta = with lib; {
description = "A patch manager implemented on top of Git";
2021-04-09 13:09:27 +00:00
homepage = "https://stacked-git.github.io/";
2021-05-07 17:04:06 +00:00
license = licenses.gpl2Only;
platforms = platforms.unix;
2021-05-07 17:04:06 +00:00
maintainers = with maintainers; [ jshholland ];
};
}