depot/third_party/nixpkgs/pkgs/tools/security/kubeaudit/default.nix
Default email 01ed8ef136 Project import generated by Copybara.
GitOrigin-RevId: 20fc948445a6c22d4e8d5178e9a6bc6e1f5417c8
2022-11-21 19:40:18 +02:00

32 lines
690 B
Nix

{ lib
, buildGoModule
, fetchFromGitHub
}:
buildGoModule rec {
pname = "kubeaudit";
version = "0.21.0";
src = fetchFromGitHub {
owner = "Shopify";
repo = pname;
rev = "v${version}";
hash = "sha256-+aHJMCwV4en30BufqzSK0yBaJCzLBfOXWTkJCsBCfVA=";
};
vendorSha256 = "sha256-DVXevOOQQjMhZ+9HLlQpKA1mD4FkIkGtq+Ur8uKTcwU=";
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 ];
};
}