3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/security/kubeaudit/default.nix

33 lines
686 B
Nix
Raw Normal View History

2021-12-04 23:04:10 +00:00
{ lib
, buildGoModule
, fetchFromGitHub
}:
buildGoModule rec {
pname = "kubeaudit";
2022-03-30 21:27:35 +01:00
version = "0.17.0";
2021-12-04 23:04:10 +00:00
src = fetchFromGitHub {
owner = "Shopify";
repo = pname;
rev = version;
2022-03-30 21:27:35 +01:00
sha256 = "sha256-aMnhEY16SybE5Oavc6stw7xoyNblCwFJpzYHsDBENX4=";
2021-12-04 23:04:10 +00:00
};
2022-03-30 21:27:35 +01:00
vendorSha256 = "sha256-plsnzeRIaJNNzrkzQYtxOqWejTDntPRemIhcfpxXgBg=";
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 ];
};
}