2021-12-05 00:04:10 +01:00
|
|
|
{ lib
|
|
|
|
, buildGoModule
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "kubeaudit";
|
2022-09-07 16:57:54 +02:00
|
|
|
version = "0.20.0";
|
2021-12-05 00:04:10 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Shopify";
|
|
|
|
repo = pname;
|
2022-06-13 11:49:27 +02:00
|
|
|
rev = "v${version}";
|
2022-09-07 16:57:54 +02:00
|
|
|
hash = "sha256-fdvlVORRREEwhBrOEAnspLJw7OPj3xymJEoJMdhN5n8=";
|
2021-12-05 00:04:10 +01:00
|
|
|
};
|
|
|
|
|
2022-09-07 16:57:54 +02:00
|
|
|
vendorSha256 = "sha256-DVXevOOQQjMhZ+9HLlQpKA1mD4FkIkGtq+Ur8uKTcwU=";
|
2021-12-05 00:04:10 +01:00
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
mv $out/bin/cmd $out/bin/$pname
|
|
|
|
'';
|
|
|
|
|
|
|
|
# Tests require a running Kubernetes instance
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Audit tool for Kubernetes";
|
|
|
|
homepage = "https://github.com/Shopify/kubeaudit";
|
|
|
|
license = with licenses; [ mit ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|