1{
2 lib,
3 buildGoModule,
4 fetchFromGitHub,
5}:
6
7buildGoModule rec {
8 pname = "cnspec";
9 version = "11.64.0";
10
11 src = fetchFromGitHub {
12 owner = "mondoohq";
13 repo = "cnspec";
14 tag = "v${version}";
15 hash = "sha256-AJ7aw21UyvOGCLEnhTHPklyDWkBAnK/Vhvvg4UDOoH4=";
16 };
17
18 proxyVendor = true;
19
20 vendorHash = "sha256-nmHs5ZHULENCyW+3giyPTO+pzbnGgGwFuVqgIfuCQi4=";
21
22 subPackages = [ "apps/cnspec" ];
23
24 ldflags = [
25 "-s"
26 "-w"
27 "-X=go.mondoo.com/cnspec.Version=${version}"
28 ];
29
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 };
40}