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:
Colin Arnott 2023-01-03 22:27:23 +00:00 committed by GitHub
parent d5b36bba0e
commit e8397aa682
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 38 additions and 0 deletions

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

View file

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