1 { lib, buildGoModule, fetchFromGitHub, installShellFiles, testers, kube-linter }:
7 src = fetchFromGitHub {
11 sha256 = "sha256-YEcEXXtCuK4Yg9EsaDFOfM+ri6iGoU7d0O6SlYYKG+U=";
14 vendorSha256 = "sha256-UVa+0mrQ2pW/4Zmegon/IOrH4SiWhrdCc3/fs3pxGq8=";
17 "-s" "-w" "-X golang.stackrox.io/kube-linter/internal/version.version=${version}"
20 nativeBuildInputs = [ installShellFiles ];
23 installShellCompletion --cmd kube-linter \
24 --bash <($out/bin/kube-linter completion bash) \
25 --fish <($out/bin/kube-linter completion fish) \
26 --zsh <($out/bin/kube-linter completion zsh)
29 passthru.tests.version = testers.testVersion {
30 package = kube-linter;
31 command = "kube-linter version";
35 description = "A static analysis tool that checks Kubernetes YAML files and Helm charts";
36 homepage = "https://kubelinter.io";
37 changelog = "https://github.com/stackrox/kube-linter/releases/tag/${version}";
38 license = licenses.asl20;
39 maintainers = with maintainers; [ mtesseract stehessel ];
40 platforms = platforms.all;