mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-02 11:53:27 +00:00
ff323ed355
via: `find pkgs/ -type f -exec sed -i 's/vendorSha256 = "sha256/vendorHash = "sha256/' {};`
34 lines
779 B
Nix
34 lines
779 B
Nix
{ lib
|
|
, buildGoModule
|
|
, fetchFromGitHub
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "kubeaudit";
|
|
version = "0.22.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Shopify";
|
|
repo = pname;
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-e6No8Md/KZUFNtPJOrSdv1GlGmxX7+tmWNjQGFdtJpc=";
|
|
};
|
|
|
|
vendorHash = "sha256-IxrAJaltg7vo3SQRC7OokSD5SM8xiX7iG8ZxKYEe9/E=";
|
|
|
|
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";
|
|
changelog = "https://github.com/Shopify/kubeaudit/releases/tag/v${version}";
|
|
license = with licenses; [ mit ];
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|