nixpkgs/pkgs/applications/networking/cluster/glooctl/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

47 lines
1.0 KiB
Nix
Raw Normal View History

2023-09-29 03:08:05 +00:00
{ lib
, buildGoModule
, fetchFromGitHub
, installShellFiles
}:
2022-01-04 18:40:25 +00:00
buildGoModule rec {
pname = "glooctl";
2024-04-14 15:04:48 +00:00
version = "1.16.10";
2022-01-04 18:40:25 +00:00
src = fetchFromGitHub {
owner = "solo-io";
repo = "gloo";
rev = "v${version}";
2024-04-14 15:04:48 +00:00
hash = "sha256-GC0/HGPO/sbkyf2bLY0A+pQrPYqMv6BP0zNUHENpQjg=";
2022-01-04 18:40:25 +00:00
};
2024-03-09 20:56:14 +00:00
vendorHash = "sha256-UyzqKpF2WBj25Bm4MtkF6yjl87A61vGsteBNCjJV178=";
2023-09-29 03:08:05 +00:00
2022-01-04 18:40:25 +00:00
subPackages = [ "projects/gloo/cli/cmd" ];
nativeBuildInputs = [ installShellFiles ];
2023-09-29 03:08:05 +00:00
strictDeps = true;
ldflags = [
"-s"
"-w"
"-X github.com/solo-io/gloo/pkg/version.Version=${version}"
];
2022-01-04 18:40:25 +00:00
postInstall = ''
mv $out/bin/cmd $out/bin/glooctl
installShellCompletion --cmd glooctl \
--bash <($out/bin/glooctl completion bash) \
--zsh <($out/bin/glooctl completion zsh)
'';
2023-09-29 03:08:05 +00:00
meta = {
2022-01-04 18:40:25 +00:00
description = "glooctl is the unified CLI for Gloo";
mainProgram = "glooctl";
2022-01-04 18:40:25 +00:00
homepage = "https://docs.solo.io/gloo-edge/latest/reference/cli/glooctl/";
2023-09-29 03:08:05 +00:00
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ ];
2022-01-04 18:40:25 +00:00
};
}