diff options
author | Bryan A. S <bryanasdev000@gmail.com> | 2022-06-25 07:41:03 -0300 |
---|---|---|
committer | Bryan A. S <bryanasdev000@gmail.com> | 2022-06-25 07:41:03 -0300 |
commit | 9e4cb79affe944fc01a70bf3929ced49f94a2b67 (patch) | |
tree | e2ec1046ee03ea69e77a700fe99d2a6e10ee428b /pkgs/applications/networking/cluster/cilium/default.nix | |
parent | 43873280f669b7cb1eba3926a9585c1b993666cf (diff) | |
download | nixpkgs-9e4cb79affe944fc01a70bf3929ced49f94a2b67.tar nixpkgs-9e4cb79affe944fc01a70bf3929ced49f94a2b67.tar.gz nixpkgs-9e4cb79affe944fc01a70bf3929ced49f94a2b67.tar.bz2 nixpkgs-9e4cb79affe944fc01a70bf3929ced49f94a2b67.tar.lz nixpkgs-9e4cb79affe944fc01a70bf3929ced49f94a2b67.tar.xz nixpkgs-9e4cb79affe944fc01a70bf3929ced49f94a2b67.tar.zst nixpkgs-9e4cb79affe944fc01a70bf3929ced49f94a2b67.zip |
cilium-cli: 0.11.7 -> 0.11.10
- bump version - add upstream ldflags - add myself as a maintainer - add subpackages per upstream - add install check
Diffstat (limited to 'pkgs/applications/networking/cluster/cilium/default.nix')
-rw-r--r-- | pkgs/applications/networking/cluster/cilium/default.nix | 23 |
1 files changed, 20 insertions, 3 deletions
diff --git a/pkgs/applications/networking/cluster/cilium/default.nix b/pkgs/applications/networking/cluster/cilium/default.nix index 648b0048e3e..076b7f2a94c 100644 --- a/pkgs/applications/networking/cluster/cilium/default.nix +++ b/pkgs/applications/networking/cluster/cilium/default.nix @@ -2,22 +2,39 @@ buildGoModule rec { pname = "cilium-cli"; - version = "0.11.7"; + version = "0.11.10"; src = fetchFromGitHub { owner = "cilium"; repo = pname; rev = "v${version}"; - sha256 = "sha256-4+4E7v/b74DDekqymH8PR7/GfH3GGzSQFQk24VJisQ0="; + sha256 = "sha256-BkcnChxUceWGG5hBOHvzZokgcw8T/vvNwIEtHkLfUJA="; }; vendorSha256 = null; + subPackages = [ "cmd/cilium" ]; + + ldflags = [ + "-s" "-w" + "-X github.com/cilium/cilium-cli/internal/cli/cmd.Version=${version}" + ]; + + + # Required to workaround install check error: + # 2022/06/25 10:36:22 Unable to start gops: mkdir /homeless-shelter: permission denied + HOME = "$TMPDIR"; + + doInstallCheck = true; + installCheckPhase = '' + $out/bin/cilium version | grep ${version} > /dev/null + ''; + meta = with lib; { description = "CLI to install, manage & troubleshoot Kubernetes clusters running Cilium"; license = licenses.asl20; homepage = "https://www.cilium.io/"; - maintainers = with maintainers; [ humancalico ]; + maintainers = with maintainers; [ humancalico bryanasdev000 ]; mainProgram = "cilium"; }; } |