cnspec: migrate to finalAttrs

This commit is contained in:
Fabian Affolter
2026-01-29 23:46:23 +01:00
committed by GitHub
parent 7b7ddc7370
commit e2fbaacb28
+5 -5
View File
@@ -4,14 +4,14 @@
fetchFromGitHub,
}:
buildGoModule rec {
buildGoModule (finalAttrs: {
pname = "cnspec";
version = "12.20.1";
src = fetchFromGitHub {
owner = "mondoohq";
repo = "cnspec";
tag = "v${version}";
tag = "v${finalAttrs.version}";
hash = "sha256-tckUExRppqjpO2yS4J/+8w8SE4b6zKWjFY6xlpVFcKE=";
};
@@ -24,17 +24,17 @@ buildGoModule rec {
ldflags = [
"-s"
"-w"
"-X=go.mondoo.com/cnspec.Version=${version}"
"-X=go.mondoo.com/cnspec.Version=${finalAttrs.version}"
];
meta = {
description = "Open source, cloud-native security and policy project";
homepage = "https://github.com/mondoohq/cnspec";
changelog = "https://github.com/mondoohq/cnspec/releases/tag/v${version}";
changelog = "https://github.com/mondoohq/cnspec/releases/tag/${finalAttrs.src.tag}";
license = lib.licenses.bsl11;
maintainers = with lib.maintainers; [
fab
mariuskimmina
];
};
}
})