cnspec: migrate to finalAttrs
This commit is contained in:
@@ -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
|
||||
];
|
||||
};
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user