diff --git a/pkgs/tools/security/cnquery/default.nix b/pkgs/tools/security/cnquery/default.nix index c3e8caf06e47..a731d5e4e661 100644 --- a/pkgs/tools/security/cnquery/default.nix +++ b/pkgs/tools/security/cnquery/default.nix @@ -1,28 +1,36 @@ -{ lib -, buildGoModule -, fetchFromGitHub +{ + lib, + buildGoModule, + fetchFromGitHub, }: buildGoModule rec { pname = "cnquery"; - version = "10.9.2"; + version = "10.11.0"; src = fetchFromGitHub { owner = "mondoohq"; repo = "cnquery"; - rev = "v${version}"; - hash = "sha256-4oAJ55qCUaqsJJ+memW078ZuKyvHoO71XhfowEg7dpg="; + rev = "refs/tags/v${version}"; + hash = "sha256-Dm001NDTi+KO3+OoF9f/X/m83KtqfnWmj0hZU6Zf71k="; }; subPackages = [ "apps/cnquery" ]; - vendorHash = "sha256-M8U6M3ejRrbQMfTh4JWYRLMQLfaDwtPiJOUEywiH6sg="; + vendorHash = "sha256-prtiCzIJizh0/viXwYylJc+GS2dVpNlBd3YvIDfltvs="; + + ldflags = [ + "-w" + "-s" + ]; meta = with lib; { - description = "cloud-native, graph-based asset inventory"; + description = "Cloud-native, graph-based asset inventory"; longDescription = '' - 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. - ''; + 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. + ''; homepage = "https://mondoo.com/cnquery"; changelog = "https://github.com/mondoohq/cnquery/releases/tag/v${version}"; license = licenses.bsl11;