diff options
author | Jan Schmitt <git@smittie.de> | 2022-03-16 12:26:49 +0100 |
---|---|---|
committer | Jan Schmitt <git@smittie.de> | 2022-03-26 12:29:07 +0100 |
commit | 34d0b8601c75bf01777ac621fa8efb94bd710c99 (patch) | |
tree | 252790ac8354c68039199230ecd52818b4dadb93 /pkgs/applications/version-management | |
parent | 9991e13d86b0dbc7edf165bb66ccbd4c8b45e6b5 (diff) |
git-team: init at 1.7.0
Diffstat (limited to 'pkgs/applications/version-management')
-rw-r--r-- | pkgs/applications/version-management/git-and-tools/git-team/default.nix | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/pkgs/applications/version-management/git-and-tools/git-team/default.nix b/pkgs/applications/version-management/git-and-tools/git-team/default.nix new file mode 100644 index 0000000000000..3fac0dc9791b0 --- /dev/null +++ b/pkgs/applications/version-management/git-and-tools/git-team/default.nix @@ -0,0 +1,31 @@ +{ lib, buildGoModule, fetchFromGitHub, installShellFiles }: +buildGoModule rec { + pname = "git-team"; + version = "1.7.0"; + + src = fetchFromGitHub { + owner = "hekmekk"; + repo = "git-team"; + rev = "v${version}"; + sha256 = "0nl5j64b61jw4bkf29y51svjbndmqqrqx96yaip4vjzj2dx9ywm4"; + }; + + vendorSha256 = "sha256-xJMWPDuqoNtCCUnKuUvwlYztyrej1uZttC0NsDvYnXI="; + + nativeBuildInputs = [ installShellFiles ]; + + postInstall = '' + go run main.go --generate-man-page > ${pname}.1 + installManPage ${pname}.1 + + # Currently only bash completions are provided + installShellCompletion --cmd git-team --bash <($out/bin/git-team completion bash) + ''; + + meta = with lib; { + description = "Command line interface for managing and enhancing git commit messages with co-authors"; + homepage = "https://github.com/hekmekk/git-team"; + license = licenses.mit; + maintainers = with maintainers; [ lockejan ]; + }; +} |