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

30 lines
783 B
Nix
Raw Normal View History

2021-04-26 12:20:51 +02:00
{ lib
, buildGoModule
, fetchFromGitHub
}:
buildGoModule rec {
pname = "kubesec";
version = "2.11.2";
2021-04-26 12:20:51 +02:00
src = fetchFromGitHub {
owner = "controlplaneio";
repo = pname;
rev = "v${version}";
sha256 = "sha256-W9c3L8lYjF1W0kwSODhMldlqX1h+2mZIRtElZ20skn4=";
2021-04-26 12:20:51 +02:00
};
2021-05-28 09:41:47 +02:00
vendorSha256 = "sha256-zfQu1EdwvR+LGmsbE8RA4pcOGgsukG1TMTCgPyNoVsc=";
2021-04-26 12:20:51 +02:00
# Tests wants to download the kubernetes schema for use with kubeval
2021-04-26 12:20:51 +02: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 12:20:51 +02:00
license = with licenses; [ asl20 ];
maintainers = with maintainers; [ fab ];
};
}