Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
36 lines
809 B
Nix
36 lines
809 B
Nix
{
|
|
lib,
|
|
buildGoModule,
|
|
fetchFromGitHub,
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "kubeaudit";
|
|
version = "0.22.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Shopify";
|
|
repo = "kubeaudit";
|
|
tag = "v${version}";
|
|
hash = "sha256-zQAM/NtDBFJZmwJYGNuYIaxv058X0URzMByPut+18TA=";
|
|
};
|
|
|
|
vendorHash = "sha256-IxrAJaltg7vo3SQRC7OokSD5SM8xiX7iG8ZxKYEe9/E=";
|
|
|
|
postInstall = ''
|
|
mv $out/bin/cmd $out/bin/$pname
|
|
'';
|
|
|
|
# Tests require a running Kubernetes instance
|
|
doCheck = false;
|
|
|
|
meta = {
|
|
description = "Audit tool for Kubernetes";
|
|
homepage = "https://github.com/Shopify/kubeaudit";
|
|
changelog = "https://github.com/Shopify/kubeaudit/releases/tag/v${version}";
|
|
license = with lib.licenses; [ mit ];
|
|
maintainers = with lib.maintainers; [ fab ];
|
|
mainProgram = "kubeaudit";
|
|
};
|
|
}
|