base16-schemes: unstable-2024-06-21 -> unstable-2024-11-12 (#356361)
[NixPkgs.git] / pkgs / tools / security / cnspec / default.nix
blob8e5a0cff74a9ed72101197f8a5a38b6eb202dd6d
2   lib,
3   buildGoModule,
4   fetchFromGitHub,
5 }:
7 buildGoModule rec {
8   pname = "cnspec";
9   version = "11.30.0";
11   src = fetchFromGitHub {
12     owner = "mondoohq";
13     repo = "cnspec";
14     rev = "refs/tags/v${version}";
15     hash = "sha256-1d04jYnVrbtxVYOJiUYZzNCwJJXZ2O1Bendxj692Sc8=";
16   };
18   proxyVendor = true;
20   vendorHash = "sha256-Sd3uN+rny3J0Z/SIMKR0HEsq21B5ZqcjxrUgqS95FaU=";
22   subPackages = [ "apps/cnspec" ];
24   ldflags = [
25     "-s"
26     "-w"
27     "-X=go.mondoo.com/cnspec.Version=${version}"
28   ];
30   meta = with lib; {
31     description = "Open source, cloud-native security and policy project";
32     homepage = "https://github.com/mondoohq/cnspec";
33     changelog = "https://github.com/mondoohq/cnspec/releases/tag/v${version}";
34     license = licenses.bsl11;
35     maintainers = with maintainers; [
36       fab
37       mariuskimmina
38     ];
39   };