1{ lib
2, buildGoModule
3, fetchFromGitHub
4}:
5
6buildGoModule rec {
7 pname = "kubeaudit";
8 version = "0.22.0";
9
10 src = fetchFromGitHub {
11 owner = "Shopify";
12 repo = pname;
13 rev = "refs/tags/v${version}";
14 hash = "sha256-e6No8Md/KZUFNtPJOrSdv1GlGmxX7+tmWNjQGFdtJpc=";
15 };
16
17 vendorSha256 = "sha256-IxrAJaltg7vo3SQRC7OokSD5SM8xiX7iG8ZxKYEe9/E=";
18
19 postInstall = ''
20 mv $out/bin/cmd $out/bin/$pname
21 '';
22
23 # Tests require a running Kubernetes instance
24 doCheck = false;
25
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 };
33}