@@ -0,0 +1,31 @@
1+{ lib, buildGoModule, fetchFromGitHub, installShellFiles }:
2+buildGoModule rec {
3+ pname = "git-team";
4+ version = "1.7.0";
5+
6+ src = fetchFromGitHub {
7+ owner = "hekmekk";
8+ repo = "git-team";
9+ rev = "v${version}";
10+ sha256 = "0nl5j64b61jw4bkf29y51svjbndmqqrqx96yaip4vjzj2dx9ywm4";
11+ };
12+
13+ vendorSha256 = "sha256-xJMWPDuqoNtCCUnKuUvwlYztyrej1uZttC0NsDvYnXI=";
14+
15+ nativeBuildInputs = [ installShellFiles ];
16+
17+ postInstall = ''
18+ go run main.go --generate-man-page > ${pname}.1
19+ installManPage ${pname}.1
20+
21+ # Currently only bash completions are provided
22+ installShellCompletion --cmd git-team --bash <($out/bin/git-team completion bash)
23+ '';
24+
25+ meta = with lib; {
26+ description = "Command line interface for managing and enhancing git commit messages with co-authors";
27+ homepage = "https://github.com/hekmekk/git-team";
28+ license = licenses.mit;
29+ maintainers = with maintainers; [ lockejan ];
30+ };
31+}