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

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

33 lines
690 B
Nix
Raw Normal View History

2021-12-04 23:04:10 +00:00
{ lib
, buildGoModule
, fetchFromGitHub
}:
buildGoModule rec {
pname = "kubeaudit";
2022-11-15 06:48:20 +00:00
version = "0.21.0";
2021-12-04 23:04:10 +00:00
src = fetchFromGitHub {
owner = "Shopify";
repo = pname;
2022-06-13 09:49:27 +00:00
rev = "v${version}";
2022-11-15 06:48:20 +00:00
hash = "sha256-+aHJMCwV4en30BufqzSK0yBaJCzLBfOXWTkJCsBCfVA=";
2021-12-04 23:04:10 +00:00
};
2022-09-07 14:57:54 +00:00
vendorSha256 = "sha256-DVXevOOQQjMhZ+9HLlQpKA1mD4FkIkGtq+Ur8uKTcwU=";
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";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}