mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-28 00:24:18 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
47 lines
1.0 KiB
Nix
47 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 ];
|
|
mainProgram = "git-team";
|
|
};
|
|
}
|