2024-04-21 15:54:59 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildGoModule,
|
|
|
|
fetchFromGitHub,
|
2024-01-02 11:29:13 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "cnquery";
|
2024-05-15 15:35:15 +00:00
|
|
|
version = "11.3.1";
|
2024-01-02 11:29:13 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mondoohq";
|
|
|
|
repo = "cnquery";
|
2024-04-21 15:54:59 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2024-05-15 15:35:15 +00:00
|
|
|
hash = "sha256-LcU4U2mxNrLJyp/V5d8TDo9DAcRBb4aRK+aEKoMCsZ0=";
|
2024-01-02 11:29:13 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
subPackages = [ "apps/cnquery" ];
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
vendorHash = "sha256-z12/OKkrDru8jO4R1I/XfzGCBPHAD+KhJKv3dyyYCdw=";
|
2024-04-21 15:54:59 +00:00
|
|
|
|
|
|
|
ldflags = [
|
|
|
|
"-w"
|
|
|
|
"-s"
|
|
|
|
];
|
2024-01-02 11:29:13 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2024-04-21 15:54:59 +00:00
|
|
|
description = "Cloud-native, graph-based asset inventory";
|
2024-01-02 11:29:13 +00:00
|
|
|
longDescription = ''
|
2024-04-21 15:54:59 +00:00
|
|
|
cnquery is a cloud-native tool for querying your entire fleet. It answers thousands of
|
|
|
|
questions about your infrastructure and integrates with over 300 resources across cloud
|
|
|
|
accounts, Kubernetes, containers, services, VMs, APIs, and more.
|
|
|
|
'';
|
2024-01-02 11:29:13 +00:00
|
|
|
homepage = "https://mondoo.com/cnquery";
|
|
|
|
changelog = "https://github.com/mondoohq/cnquery/releases/tag/v${version}";
|
|
|
|
license = licenses.bsl11;
|
|
|
|
maintainers = with maintainers; [ mariuskimmina ];
|
|
|
|
};
|
|
|
|
}
|