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

30 lines
783 B
Nix
Raw Normal View History

2021-04-26 06:20:51 -04:00
{ lib
, buildGoModule
, fetchFromGitHub
}:
buildGoModule rec {
pname = "kubesec";
2021-09-22 22:03:56 -04:00
version = "2.11.4";
2021-04-26 06:20:51 -04:00
src = fetchFromGitHub {
owner = "controlplaneio";
repo = pname;
rev = "v${version}";
2021-09-22 22:03:56 -04:00
sha256 = "sha256-z1v+xm0ZWs8F5KtltBSDx9W+xNqRsfvAgQUKgrZa+28=";
2021-04-26 06:20:51 -04:00
};
2021-09-22 22:03:56 -04:00
vendorSha256 = "sha256-/2u92KvfzbJxJjh1cy9+4AuM5Qw1tK9Hu0xjRs0nhBE=";
2021-04-26 06:20:51 -04:00
# Tests wants to download the kubernetes schema for use with kubeval
2021-04-26 06:20:51 -04:00
doCheck = false;
meta = with lib; {
description = "Security risk analysis tool for Kubernetes resources";
homepage = "https://github.com/controlplaneio/kubesec";
changelog = "https://github.com/controlplaneio/kubesec/blob/v${version}/CHANGELOG.md";
2021-04-26 06:20:51 -04:00
license = with licenses; [ asl20 ];
maintainers = with maintainers; [ fab ];
};
}