1 { lib, buildGoModule, fetchFromGitHub, installShellFiles, testers, kube-linter }:
7 src = fetchFromGitHub {
11 sha256 = "sha256-abfNzf+84BWHpvLQZKyzl7WBt7UHj2zqzKq3VCqAwwY=";
14 vendorHash = "sha256-FUkGiJ/6G9vSYtAj0v9GT4OINbO3d/OKlJ0YwhONftY=";
17 "-s" "-w" "-X golang.stackrox.io/kube-linter/internal/version.version=${version}"
20 nativeBuildInputs = [ installShellFiles ];
22 checkFlags = [ "-skip=TestCreateContextsWithIgnorePaths" ];
25 installShellCompletion --cmd kube-linter \
26 --bash <($out/bin/kube-linter completion bash) \
27 --fish <($out/bin/kube-linter completion fish) \
28 --zsh <($out/bin/kube-linter completion zsh)
31 passthru.tests.version = testers.testVersion {
32 package = kube-linter;
33 command = "kube-linter version";
37 description = "A static analysis tool that checks Kubernetes YAML files and Helm charts";
38 homepage = "https://kubelinter.io";
39 changelog = "https://github.com/stackrox/kube-linter/releases/tag/v${version}";
40 license = licenses.asl20;
41 maintainers = with maintainers; [ mtesseract stehessel Intuinewin ];
42 platforms = platforms.all;