biome: 1.9.2 -> 1.9.3
[NixPkgs.git] / pkgs / tools / security / kubeaudit / default.nix
blob0c448246f5fb6ec4d479b1a2d2c50a5a04a0766f
1 { lib
2 , buildGoModule
3 , fetchFromGitHub
4 }:
6 buildGoModule rec {
7   pname = "kubeaudit";
8   version = "0.22.2";
10   src = fetchFromGitHub {
11     owner = "Shopify";
12     repo = "kubeaudit";
13     rev = "refs/tags/v${version}";
14     hash = "sha256-zQAM/NtDBFJZmwJYGNuYIaxv058X0URzMByPut+18TA=";
15   };
17   vendorHash = "sha256-IxrAJaltg7vo3SQRC7OokSD5SM8xiX7iG8ZxKYEe9/E=";
19   postInstall = ''
20     mv $out/bin/cmd $out/bin/$pname
21   '';
23   # Tests require a running Kubernetes instance
24   doCheck = false;
26   meta = with lib; {
27     description = "Audit tool for Kubernetes";
28     homepage = "https://github.com/Shopify/kubeaudit";
29     changelog = "https://github.com/Shopify/kubeaudit/releases/tag/v${version}";
30     license = with licenses; [ mit ];
31     maintainers = with maintainers; [ fab ];
32     mainProgram = "kubeaudit";
33   };