nixpkgs/pkgs/applications/networking/cluster/glooctl/default.nix
R. RyanTM a126cc78b4
glooctl: 1.10.8 -> 1.10.10
* glooctl: 1.10.8 -> 1.10.9 (#160592)

* glooctl: 1.10.9 -> 1.10.10
Fixes Envoy CVEs CVE-2021-43826, CVE-2021-43824, CVE-2022-21654, CVE-2022-21655, CVE-2021-43825, CVE-2022-23606.

Co-authored-by: Renaud <c0bw3b@users.noreply.github.com>
2022-02-23 01:32:14 +01:00

37 lines
1020 B
Nix

{ lib, buildGoModule, fetchFromGitHub, installShellFiles }:
buildGoModule rec {
pname = "glooctl";
version = "1.10.10";
src = fetchFromGitHub {
owner = "solo-io";
repo = "gloo";
rev = "v${version}";
hash = "sha256-Be0ejIQ3euKXX6wc1abXz8BphhrDnBMP0GzmnrF7C/4=";
};
subPackages = [ "projects/gloo/cli/cmd" ];
vendorSha256 = "1s3s4n2wgi4azwkmg9zw2a3gz378nb1i41p3s8aixfbf6fsqc6ga";
nativeBuildInputs = [ installShellFiles ];
postInstall = ''
mv $out/bin/cmd $out/bin/glooctl
export HOME=$TMP
installShellCompletion --cmd glooctl \
--bash <($out/bin/glooctl completion bash) \
--zsh <($out/bin/glooctl completion zsh)
'';
ldflags = [ "-s" "-w" "-X github.com/solo-io/gloo/pkg/version.Version=${version}" ];
meta = with lib; {
description = "glooctl is the unified CLI for Gloo";
homepage = "https://docs.solo.io/gloo-edge/latest/reference/cli/glooctl/";
license = licenses.asl20;
maintainers = with maintainers; [ nelsonjeppesen ];
};
}