gatekeeper: init at 3.8.1

This commit is contained in:
Sandro Jäckel 2022-06-01 18:37:17 +02:00
parent 06e6b81e98
commit 85bd5aa3e7
No known key found for this signature in database
GPG key ID: B1763F8651144063
2 changed files with 41 additions and 0 deletions

View 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 ];
};
}

View file

@ -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 { };