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
44 lines
870 B
Nix
44 lines
870 B
Nix
{
|
|
lib,
|
|
buildGoModule,
|
|
fetchFromGitHub,
|
|
testers,
|
|
svu,
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "svu";
|
|
version = "3.2.4";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "caarlos0";
|
|
repo = "svu";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-NzhVEChNsUkzGe1/M8gl1K0SD5nAQ/PrYUxGQKQUAtU=";
|
|
};
|
|
|
|
vendorHash = "sha256-xhNJsARuZZx9nhmTNDMB51VC0QgjZgOYFKLhLf+3b3A=";
|
|
|
|
ldflags = [
|
|
"-s"
|
|
"-w"
|
|
"-X=main.version=${version}"
|
|
"-X=main.builtBy=nixpkgs"
|
|
];
|
|
|
|
# test assumes source directory to be a git repository
|
|
postPatch = ''
|
|
rm internal/git/git_test.go
|
|
'';
|
|
|
|
passthru.tests.version = testers.testVersion { package = svu; };
|
|
|
|
meta = with lib; {
|
|
description = "Semantic Version Util";
|
|
homepage = "https://github.com/caarlos0/svu";
|
|
maintainers = with maintainers; [ caarlos0 ];
|
|
license = licenses.mit;
|
|
mainProgram = "svu";
|
|
};
|
|
}
|