98eb3e9ef5
GitOrigin-RevId: 00d80d13810dbfea8ab4ed1009b09100cca86ba8
40 lines
848 B
Nix
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
|
|
];
|
|
};
|
|
}
|