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-05 00:04:10 +01:00
{ lib
, buildGoModule
, fetchFromGitHub
}:
buildGoModule rec {
pname = "kubeaudit";
2022-07-09 00:47:02 +02:00
version = "0.19.0";
2021-12-05 00:04:10 +01:00
src = fetchFromGitHub {
owner = "Shopify";
repo = pname;
2022-06-13 11:49:27 +02:00
rev = "v${version}";
2022-07-09 00:47:02 +02:00
hash = "sha256-exJGjFeqk3hM52Zgfs+2JEVdzVZf79ZRQH2krusiw8c=";
2021-12-05 00:04:10 +01:00
};
2022-07-09 00:47:02 +02:00
vendorSha256 = "sha256-hi83C05eEXqQ6kMGv6n/fjsYAXveyVRqKZds5iv8Oio=";
2021-12-05 00:04:10 +01: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 ];
};
}