{ lib, buildGoModule, fetchFromGitHub, }: buildGoModule rec { pname = "cnspec"; version = "11.24.0"; src = fetchFromGitHub { owner = "mondoohq"; repo = "cnspec"; rev = "refs/tags/v${version}"; hash = "sha256-CI47eP1e1oXm2WQY89tU3g7DdSwG7UQT46DqOCY7uq0="; }; proxyVendor = true; vendorHash = "sha256-x1rYRUiYqgi22r7CkOlgHHVImVvQ4sLggLV+hfkeW30="; subPackages = [ "apps/cnspec" ]; ldflags = [ "-s" "-w" "-X=go.mondoo.com/cnspec.Version=${version}" ]; meta = with lib; { description = "Open source, cloud-native security and policy project"; homepage = "https://github.com/mondoohq/cnspec"; changelog = "https://github.com/mondoohq/cnspec/releases/tag/v${version}"; license = licenses.bsl11; maintainers = with maintainers; [ fab mariuskimmina ]; }; }