41 lines
837 B
Nix
41 lines
837 B
Nix
|
|
{
|
||
|
|
lib,
|
||
|
|
buildGoModule,
|
||
|
|
fetchFromGitHub,
|
||
|
|
}:
|
||
|
|
|
||
|
|
buildGoModule rec {
|
||
|
|
pname = "cnspec";
|
||
|
|
version = "12.4.0";
|
||
|
|
|
||
|
|
src = fetchFromGitHub {
|
||
|
|
owner = "mondoohq";
|
||
|
|
repo = "cnspec";
|
||
|
|
tag = "v${version}";
|
||
|
|
hash = "sha256-BzLQPkgvARDzpauFezD5Q7RNrReLz9lSHEb6TIGkGQY=";
|
||
|
|
};
|
||
|
|
|
||
|
|
proxyVendor = true;
|
||
|
|
|
||
|
|
vendorHash = "sha256-DaEEBZXLN6BujB56P1082D143WnUdwZPSc+JeUEZCuk=";
|
||
|
|
|
||
|
|
subPackages = [ "apps/cnspec" ];
|
||
|
|
|
||
|
|
ldflags = [
|
||
|
|
"-s"
|
||
|
|
"-w"
|
||
|
|
"-X=go.mondoo.com/cnspec.Version=${version}"
|
||
|
|
];
|
||
|
|
|
||
|
|
meta = with lib; {
|
||
|
|
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}";
|
||
|
|
license = licenses.bsl11;
|
||
|
|
maintainers = with maintainers; [
|
||
|
|
fab
|
||
|
|
mariuskimmina
|
||
|
|
];
|
||
|
|
};
|
||
|
|
}
|