41 lines
848 B
Nix
41 lines
848 B
Nix
{
|
|
lib,
|
|
buildGoModule,
|
|
fetchFromGitHub,
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "cnspec";
|
|
version = "11.16.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "mondoohq";
|
|
repo = "cnspec";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-xXN+1t5/0bLjX7lfuKTJDw0cN87LdFCuzYaaVt1plac=";
|
|
};
|
|
|
|
proxyVendor = true;
|
|
|
|
vendorHash = "sha256-S4RvRGtIUjJ/vDehUrsozxbvZckw/7hpguTCcR6mbCc=";
|
|
|
|
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
|
|
];
|
|
};
|
|
}
|