depot/third_party/nixpkgs/pkgs/tools/security/cnspec/default.nix
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

40 lines
848 B
Nix

{
lib,
buildGoModule,
fetchFromGitHub,
}:
buildGoModule rec {
pname = "cnspec";
version = "11.19.0";
src = fetchFromGitHub {
owner = "mondoohq";
repo = "cnspec";
rev = "refs/tags/v${version}";
hash = "sha256-37i7lbkw70DpwCUvZtv6548l6csx3ozG+1gPTKhJQFg=";
};
proxyVendor = true;
vendorHash = "sha256-8+qS6fR/5oYHP1QhoHfByQ7AayYPYVg4xEtF3617aJM=";
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
];
};
}