2024-04-21 15:54:59 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildGoModule,
|
|
|
|
fetchFromGitHub,
|
2023-05-24 13:37:59 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "cnspec";
|
2024-07-01 15:47:52 +00:00
|
|
|
version = "11.10.0";
|
2023-05-24 13:37:59 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mondoohq";
|
|
|
|
repo = "cnspec";
|
|
|
|
rev = "refs/tags/v${version}";
|
2024-07-01 15:47:52 +00:00
|
|
|
hash = "sha256-tV7QDa7XSkr+HwegOwEnOjtn1IrLhE0PfrhjjRz0JbM=";
|
2023-05-24 13:37:59 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
proxyVendor = true;
|
|
|
|
|
2024-07-01 15:47:52 +00:00
|
|
|
vendorHash = "sha256-KS+fuoLFueI5cHQLiM1g6Qxq4UFKNVGauvchx2aP+RY=";
|
2024-04-21 15:54:59 +00:00
|
|
|
|
|
|
|
subPackages = [ "apps/cnspec" ];
|
2023-05-24 13:37:59 +00:00
|
|
|
|
|
|
|
ldflags = [
|
|
|
|
"-s"
|
|
|
|
"-w"
|
|
|
|
"-X=go.mondoo.com/cnspec.Version=${version}"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Open source, cloud-native security and policy project";
|
2023-05-24 13:37:59 +00:00
|
|
|
homepage = "https://github.com/mondoohq/cnspec";
|
|
|
|
changelog = "https://github.com/mondoohq/cnspec/releases/tag/v${version}";
|
2024-01-13 08:15:51 +00:00
|
|
|
license = licenses.bsl11;
|
2024-04-21 15:54:59 +00:00
|
|
|
maintainers = with maintainers; [
|
|
|
|
fab
|
|
|
|
mariuskimmina
|
|
|
|
];
|
2023-05-24 13:37:59 +00:00
|
|
|
};
|
|
|
|
}
|