2024-04-21 15:54:59 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildGoModule,
|
|
|
|
fetchFromGitHub,
|
2023-05-24 13:37:59 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "cnspec";
|
2024-09-26 11:04:55 +00:00
|
|
|
version = "11.23.0";
|
2023-05-24 13:37:59 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mondoohq";
|
|
|
|
repo = "cnspec";
|
|
|
|
rev = "refs/tags/v${version}";
|
2024-09-26 11:04:55 +00:00
|
|
|
hash = "sha256-oZCKNsbDdsqlh763/T23+A03Qt8f/XyC8MItMah+U3w=";
|
2023-05-24 13:37:59 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
proxyVendor = true;
|
|
|
|
|
2024-09-26 11:04:55 +00:00
|
|
|
vendorHash = "sha256-QqK527y4W+B7jhRoOkpt9QRyERA6Tn4Dwaq+gzN3k4U=";
|
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
|
|
|
};
|
|
|
|
}
|