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
40 lines
999 B
Nix
40 lines
999 B
Nix
{
|
|
lib,
|
|
buildGoModule,
|
|
fetchFromGitHub,
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "commitizen-go";
|
|
version = "1.0.3";
|
|
|
|
# we can't obtain the commit hash when using fetchFromGithub
|
|
commit_revision = "unspecified (nix build)";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "lintingzhen";
|
|
repo = "commitizen-go";
|
|
rev = "v${version}";
|
|
hash = "sha256-pAWdIQ3icXEv79s+sUVhQclsNcZg+PTZZ6I6JPo7pNg=";
|
|
};
|
|
|
|
vendorHash = "sha256-TbrgKE7P3c0gkqJPDkbchWTPkOuTaTAWd8wDcpffcCc=";
|
|
|
|
subPackages = [ "." ];
|
|
|
|
env.CGO_ENABLED = 0;
|
|
|
|
ldflags = [
|
|
"-X 'github.com/lintingzhen/commitizen-go/cmd.revision=${commit_revision}'"
|
|
"-X 'github.com/lintingzhen/commitizen-go/cmd.version=${version}'"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Command line utility to standardize git commit messages, golang version";
|
|
homepage = "https://github.com/lintingzhen/commitizen-go";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ seanrmurphy ];
|
|
mainProgram = "commitizen-go";
|
|
};
|
|
}
|