11 src = fetchFromGitHub {
12 owner = "controlplaneio";
15 sha256 = "sha256-FYYMCouZuG0EqvganPLSrLgaDZ+JowUcYXTnKMJ+6Us=";
17 vendorHash = "sha256-KTmsCbFRHMd1KnBYxwWWuETaTP0G3NYCK/ttgrFy59I=";
19 nativeBuildInputs = [ installShellFiles ];
24 "-X github.com/controlplaneio/kubesec/v${lib.versions.major version}/cmd.version=v${version}"
27 # Tests wants to download the kubernetes schema for use with kubeval
31 installShellCompletion --cmd kubesec \
32 --bash <($out/bin/kubesec completion bash) \
33 --fish <($out/bin/kubesec completion fish) \
34 --zsh <($out/bin/kubesec completion zsh)
37 doInstallCheck = true;
38 installCheckPhase = ''
39 runHook preInstallCheck
41 $out/bin/kubesec --help
42 $out/bin/kubesec version | grep "${version}"
44 runHook postInstallCheck
48 description = "Security risk analysis tool for Kubernetes resources";
49 mainProgram = "kubesec";
50 homepage = "https://github.com/controlplaneio/kubesec";
51 changelog = "https://github.com/controlplaneio/kubesec/blob/v${version}/CHANGELOG.md";
52 license = with licenses; [ asl20 ];
53 maintainers = with maintainers; [ fab jk ];