14 src = fetchFromGitHub {
18 hash = "sha256-P4S+4N9f/m28lNwx7xzYcq99nvXelSvzX01QXDhfGM4=";
21 nativeBuildInputs = [ installShellFiles ];
25 subPackages = [ "cmd/cilium" ];
30 "-X=github.com/cilium/cilium/cilium-cli/defaults.CLIVersion=${version}"
33 # Required to workaround install check error:
34 # 2022/06/25 10:36:22 Unable to start gops: mkdir /homeless-shelter: permission denied
38 installShellCompletion --cmd cilium \
39 --bash <($out/bin/cilium completion bash) \
40 --fish <($out/bin/cilium completion fish) \
41 --zsh <($out/bin/cilium completion zsh)
44 passthru.tests.version = testers.testVersion {
46 command = "cilium version --client";
47 version = "${version}";
51 description = "CLI to install, manage & troubleshoot Kubernetes clusters running Cilium";
52 homepage = "https://www.cilium.io/";
53 changelog = "https://github.com/cilium/cilium-cli/releases/tag/v${version}";
54 license = lib.licenses.asl20;
55 maintainers = with lib.maintainers; [
60 mainProgram = "cilium";