diff options
author | AndersonTorres <torres.anderson.85@protonmail.com> | 2022-12-19 08:46:57 -0300 |
---|---|---|
committer | AndersonTorres <torres.anderson.85@protonmail.com> | 2022-12-19 15:05:22 -0300 |
commit | d994dabacef6a7e13a41d144cd6d800f8e21a11f (patch) | |
tree | 04bf3d99d27800b95686feef4000e7794e2df375 /pkgs/applications/version-management/git-team | |
parent | b10a520017ac319c1e57b07742efd2bcc918d160 (diff) |
treewide: remove git-and-tools directory
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.
Diffstat (limited to 'pkgs/applications/version-management/git-team')
-rw-r--r-- | pkgs/applications/version-management/git-team/default.nix | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/pkgs/applications/version-management/git-team/default.nix b/pkgs/applications/version-management/git-team/default.nix new file mode 100644 index 0000000000000..afce41e15d19a --- /dev/null +++ b/pkgs/applications/version-management/git-team/default.nix @@ -0,0 +1,45 @@ +{ 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 ]; + }; +} |