karmor: init at 0.11.1 (#207794)
Co-authored-by: Sandro <sandro.jaeckel@gmail.com> Fixes https://github.com/NixOS/nixpkgs/issues/207517
This commit is contained in:
parent
d5b36bba0e
commit
e8397aa682
2 changed files with 38 additions and 0 deletions
36
pkgs/applications/networking/cluster/karmor/default.nix
Normal file
36
pkgs/applications/networking/cluster/karmor/default.nix
Normal file
|
@ -0,0 +1,36 @@
|
|||
{ buildGoModule, fetchFromGitHub, installShellFiles, lib }:
|
||||
|
||||
buildGoModule rec {
|
||||
pname = "karmor";
|
||||
version = "0.11.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "kubearmor";
|
||||
repo = "kubearmor-client";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-s1G5ZcXtjL9TxYpEUvnqiQXaY7OFUwCDXFongRM48Xk=";
|
||||
};
|
||||
|
||||
vendorHash = "sha256-VvjcGiBxK2OVvIEc/ScwUT6zJZTccnXu/JfXKXc5WNY=";
|
||||
|
||||
nativeBuildInputs = [ installShellFiles ];
|
||||
|
||||
# integration tests require network access
|
||||
doCheck = false;
|
||||
|
||||
postInstall = ''
|
||||
mv $out/bin/{kubearmor-client,karmor}
|
||||
installShellCompletion --cmd karmor \
|
||||
--bash <($out/bin/karmor completion bash) \
|
||||
--fish <($out/bin/karmor completion fish) \
|
||||
--zsh <($out/bin/karmor completion zsh)
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "A client tool to help manage KubeArmor";
|
||||
homepage = "https://kubearmor.io";
|
||||
changelog = "https://github.com/kubearmor/kubearmor-client/releases/v${version}";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ urandom ];
|
||||
};
|
||||
}
|
|
@ -30289,6 +30289,8 @@ with pkgs;
|
|||
|
||||
kiln = callPackage ../applications/misc/kiln { };
|
||||
|
||||
karmor = callPackage ../applications/networking/cluster/karmor {};
|
||||
|
||||
kubernetes-code-generator = callPackage ../development/tools/kubernetes-code-generator {};
|
||||
|
||||
kubernetes-controller-tools = callPackage ../development/tools/kubernetes-controller-tools { };
|
||||
|
|
Loading…
Reference in a new issue