Files
nixpkgs/pkgs/by-name/va/vacuum-go/package.nix
Dark Steveneq 646b892680
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
push sheeet
2025-10-09 14:15:47 +02:00

48 lines
1.1 KiB
Nix

{
lib,
buildGoModule,
fetchFromGitHub,
testers,
}:
buildGoModule (finalAttrs: {
pname = "vacuum-go";
version = "0.18.5";
src = fetchFromGitHub {
owner = "daveshanley";
repo = "vacuum";
# using refs/tags because simple version gives: 'the given path has multiple possibilities' error
tag = "v${finalAttrs.version}";
hash = "sha256-vsdSRsfGXjWlYxl3a6cGWJ7IadLP7KIM3lFkUlboTj4=";
};
vendorHash = "sha256-+GkxN20mZD/ZBTCjmjiDcEAJix2Ssn9HsNrUtQkrI18=";
env.CGO_ENABLED = 0;
ldflags = [
"-s"
"-w"
"-X main.version=v${finalAttrs.version}"
];
subPackages = [ "./vacuum.go" ];
passthru = {
tests.version = testers.testVersion {
package = finalAttrs.finalPackage;
command = "vacuum version";
version = "v${finalAttrs.version}";
};
};
meta = {
description = "World's fastest OpenAPI & Swagger linter";
homepage = "https://quobix.com/vacuum";
changelog = "https://github.com/daveshanley/vacuum/releases/tag/v${finalAttrs.version}";
license = lib.licenses.mit;
mainProgram = "vacuum";
maintainers = with lib.maintainers; [ konradmalik ];
};
})