mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 07:23:20 +00:00
d994dabace
We do not use a "plugin system" for Git addons anymore, and therefore this directory is no longer useful. Indeed that directory is way more confusing, given that it includes more than mere Git addons, going from Bitbucket server command-line tools to complete rewrites of Git in exotic programming languages. Also, without this directory, the mental load of decision-making reduces a lot. When anyone is interested in including a new git-related tool, just put it into pkgs/applications/version-management, without apologies.
46 lines
1.0 KiB
Nix
46 lines
1.0 KiB
Nix
{ lib
|
|
, buildGoModule
|
|
, fetchFromGitHub
|
|
, go-mockery
|
|
, 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
|
|
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 ];
|
|
};
|
|
}
|