14 src = fetchFromGitHub {
17 rev = "refs/tags/v${version}";
18 hash = "sha256-I5HC1H517oCizZf2mcHOKmgJqnvPjkNVfDy2/9Kkw44=";
21 nativeBuildInputs = [ installShellFiles ];
25 subPackages = [ "cmd/cilium" ];
29 "-X=github.com/cilium/cilium-cli/defaults.CLIVersion=${version}"
32 # Required to workaround install check error:
33 # 2022/06/25 10:36:22 Unable to start gops: mkdir /homeless-shelter: permission denied
37 installShellCompletion --cmd cilium \
38 --bash <($out/bin/cilium completion bash) \
39 --fish <($out/bin/cilium completion fish) \
40 --zsh <($out/bin/cilium completion zsh)
43 passthru.tests.version = testers.testVersion {
45 command = "cilium version --client";
46 version = "${version}";
50 description = "CLI to install, manage & troubleshoot Kubernetes clusters running Cilium";
51 homepage = "https://www.cilium.io/";
52 changelog = "https://github.com/cilium/cilium-cli/releases/tag/v${version}";
53 license = lib.licenses.asl20;
54 maintainers = with lib.maintainers; [ bryanasdev000 humancalico qjoly ];
55 mainProgram = "cilium";