nixpkgs/pkgs/tools/security/kubeaudit/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

34 lines
781 B
Nix
Raw Normal View History

2021-12-04 23:04:10 +00:00
{ lib
, buildGoModule
, fetchFromGitHub
}:
buildGoModule rec {
pname = "kubeaudit";
2023-03-22 19:09:15 +00:00
version = "0.22.0";
2021-12-04 23:04:10 +00:00
src = fetchFromGitHub {
owner = "Shopify";
repo = pname;
2023-03-22 19:11:08 +00:00
rev = "refs/tags/v${version}";
2023-03-22 19:09:15 +00:00
hash = "sha256-e6No8Md/KZUFNtPJOrSdv1GlGmxX7+tmWNjQGFdtJpc=";
2021-12-04 23:04:10 +00:00
};
2023-03-22 19:09:15 +00:00
vendorSha256 = "sha256-IxrAJaltg7vo3SQRC7OokSD5SM8xiX7iG8ZxKYEe9/E=";
2021-12-04 23:04:10 +00: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";
2023-03-22 19:11:08 +00:00
changelog = "https://github.com/Shopify/kubeaudit/releases/tag/v${version}";
2021-12-04 23:04:10 +00:00
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}