gatekeeper: init at 3.8.1
This commit is contained in:
parent
06e6b81e98
commit
85bd5aa3e7
39
pkgs/applications/networking/cluster/gatekeeper/default.nix
Normal file
39
pkgs/applications/networking/cluster/gatekeeper/default.nix
Normal file
|
@ -0,0 +1,39 @@
|
|||
{ lib
|
||||
, buildGoModule
|
||||
, fetchFromGitHub
|
||||
, installShellFiles
|
||||
}:
|
||||
|
||||
buildGoModule rec {
|
||||
pname = "gatekeeper";
|
||||
version = "3.8.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "open-policy-agent";
|
||||
repo = "gatekeeper";
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-zEUH88sjgR738BXK2oSSM6jf5oHZt0VJv61BcxclG1Q=";
|
||||
};
|
||||
|
||||
vendorSha256 = null;
|
||||
|
||||
nativeBuildInputs = [
|
||||
installShellFiles
|
||||
];
|
||||
|
||||
subPackages = [ "cmd/gator" ];
|
||||
|
||||
postInstall = ''
|
||||
installShellCompletion --cmd gator \
|
||||
--bash <($out/bin/gator completion bash) \
|
||||
--fish <($out/bin/gator completion fish) \
|
||||
--zsh <($out/bin/gator completion zsh)
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Policy Controller for Kubernetes";
|
||||
homepage = "https://github.com/open-policy-agent/gatekeeper";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ SuperSandro2000 ];
|
||||
};
|
||||
}
|
|
@ -27073,6 +27073,8 @@ with pkgs;
|
|||
|
||||
hugo = callPackage ../applications/misc/hugo { buildGoModule = buildGo118Module; };
|
||||
|
||||
gatekeeper = callPackage ../applications/networking/cluster/gatekeeper { };
|
||||
|
||||
go-org = callPackage ../applications/misc/go-org { };
|
||||
|
||||
hushboard = python3.pkgs.callPackage ../applications/audio/hushboard { };
|
||||
|
|
Loading…
Reference in a new issue