nixpkgs-suyu/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-11-15 07:48:20 +01:00
version = "0.21.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-11-15 07:48:20 +01:00
hash = "sha256-+aHJMCwV4en30BufqzSK0yBaJCzLBfOXWTkJCsBCfVA=";
2021-12-05 00:04:10 +01:00
};
2022-09-07 16:57:54 +02:00
vendorSha256 = "sha256-DVXevOOQQjMhZ+9HLlQpKA1mD4FkIkGtq+Ur8uKTcwU=";
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 ];
};
}