depot/third_party/nixpkgs/pkgs/tools/security/kubeaudit/default.nix
Default email 3a4df29a92 Project import generated by Copybara.
GitOrigin-RevId: 3d7435c638baffaa826b85459df0fff47f12317d
2022-06-16 19:23:12 +02:00

32 lines
690 B
Nix

{ lib
, buildGoModule
, fetchFromGitHub
}:
buildGoModule rec {
pname = "kubeaudit";
version = "0.18.0";
src = fetchFromGitHub {
owner = "Shopify";
repo = pname;
rev = "v${version}";
hash = "sha256-aMnhEY16SybE5Oavc6stw7xoyNblCwFJpzYHsDBENX4=";
};
vendorSha256 = "sha256-plsnzeRIaJNNzrkzQYtxOqWejTDntPRemIhcfpxXgBg=";
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 ];
};
}