depot/third_party/nixpkgs/pkgs/tools/security/cnspec/default.nix
Default email 98eb3e9ef5 Project import generated by Copybara.
GitOrigin-RevId: 00d80d13810dbfea8ab4ed1009b09100cca86ba8
2024-07-01 15:47:52 +00:00

40 lines
848 B
Nix

{
lib,
buildGoModule,
fetchFromGitHub,
}:
buildGoModule rec {
pname = "cnspec";
version = "11.10.0";
src = fetchFromGitHub {
owner = "mondoohq";
repo = "cnspec";
rev = "refs/tags/v${version}";
hash = "sha256-tV7QDa7XSkr+HwegOwEnOjtn1IrLhE0PfrhjjRz0JbM=";
};
proxyVendor = true;
vendorHash = "sha256-KS+fuoLFueI5cHQLiM1g6Qxq4UFKNVGauvchx2aP+RY=";
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
];
};
}