blob: 13a4d05f527167176aae9ed6e1fe2fe4e4ce3d09 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
{ lib
, buildGoModule
, fetchFromGitHub
, installShellFiles
}:
buildGoModule rec {
pname = "gatekeeper";
version = "3.9.2";
src = fetchFromGitHub {
owner = "open-policy-agent";
repo = "gatekeeper";
rev = "v${version}";
sha256 = "sha256-g6OwUCUR/F4v62yt3cCnAcys0tYYYrYVHC8vZZF5OQ4=";
};
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 ];
};
}
|