1{
2 lib,
3 buildGoModule,
4 fetchFromGitHub,
5}:
6
7buildGoModule rec {
8 pname = "cnquery";
9 version = "11.64.0";
10
11 src = fetchFromGitHub {
12 owner = "mondoohq";
13 repo = "cnquery";
14 tag = "v${version}";
15 hash = "sha256-olfkzuAgXjlxDQCaLqnu6V9tenFjBBYvIzxuo2phtns=";
16 };
17
18 subPackages = [ "apps/cnquery" ];
19
20 vendorHash = "sha256-b+E8thljWxRwbBca2TdTINQERnOvfQncSEJ0+Nxuk8M=";
21
22 ldflags = [
23 "-w"
24 "-s"
25 ];
26
27 meta = {
28 description = "Cloud-native, graph-based asset inventory";
29 longDescription = ''
30 cnquery is a cloud-native tool for querying your entire fleet. It answers thousands of
31 questions about your infrastructure and integrates with over 300 resources across cloud
32 accounts, Kubernetes, containers, services, VMs, APIs, and more.
33 '';
34 homepage = "https://mondoo.com/cnquery";
35 changelog = "https://github.com/mondoohq/cnquery/releases/tag/v${version}";
36 license = lib.licenses.bsl11;
37 maintainers = with lib.maintainers; [ mariuskimmina ];
38 };
39}