Files
nixpkgs/pkgs/by-name/gi/git-team/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

48 lines
1.0 KiB
Nix

{
lib,
buildGoModule,
fetchFromGitHub,
go-mockery_2,
installShellFiles,
}:
buildGoModule rec {
pname = "git-team";
version = "1.8.1";
src = fetchFromGitHub {
owner = "hekmekk";
repo = "git-team";
rev = "v${version}";
hash = "sha256-+j5d1tImVHaTx63uzLdh2YNCFa1ErAVv4OMwxOutBQ4=";
};
vendorHash = "sha256-NTOUL1oE2IhgLyYYHwRCMW5yCxIRxUwqkfuhSSBXf6A=";
nativeBuildInputs = [
go-mockery_2
installShellFiles
];
preBuild = ''
mockery --dir=src/ --all --keeptree
'';
postInstall = ''
go run main.go --generate-man-page > git-team.1
installManPage git-team.1
installShellCompletion --cmd git-team \
--bash <($out/bin/git-team completion bash) \
--zsh <($out/bin/git-team completion zsh)
'';
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 ];
mainProgram = "git-team";
};
}