nixpkgs/pkgs/tools/security/cnspec/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

38 lines
820 B
Nix
Raw Normal View History

2023-05-22 15:07:38 +00:00
{ lib
, buildGoModule
, fetchFromGitHub
}:
buildGoModule rec {
pname = "cnspec";
2023-06-30 10:23:58 +00:00
version = "8.16.0";
2023-05-22 15:07:38 +00:00
src = fetchFromGitHub {
owner = "mondoohq";
repo = "cnspec";
rev = "refs/tags/v${version}";
2023-06-30 10:23:58 +00:00
hash = "sha256-aTpE/8nPSnLqcj6KnBi70ZoOlkOXdmsw9INNnoVIjQw=";
2023-05-22 15:07:38 +00:00
};
2023-05-22 20:53:47 +00:00
proxyVendor = true;
2023-06-30 10:23:58 +00:00
vendorHash = "sha256-pc9m58Sjegr2J+JqcOYu1xo3AZCN+EI2mlXKL14qqRU=";
2023-05-22 15:07:38 +00:00
subPackages = [
"apps/cnspec"
];
ldflags = [
"-s"
"-w"
"-X=go.mondoo.com/cnspec.Version=${version}"
];
meta = with lib; {
description = "An 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.mpl20;
maintainers = with maintainers; [ fab ];
};
}