2021-02-05 17:12:51 +00:00
|
|
|
{ buildGoModule, fetchFromGitHub, installShellFiles, lib }:
|
2020-08-20 17:08:02 +00:00
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
buildGoModule rec {
|
|
|
|
pname = "humioctl";
|
2024-09-19 14:19:46 +00:00
|
|
|
version = "0.36.0";
|
2023-07-15 17:15:38 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "humio";
|
|
|
|
repo = "cli";
|
|
|
|
rev = "v${version}";
|
2024-09-19 14:19:46 +00:00
|
|
|
hash = "sha256-2vkzde4l6GIIBzzNSewCtaVlBqkqpZQGXjw7VdJFPaE=";
|
2023-07-15 17:15:38 +00:00
|
|
|
};
|
|
|
|
|
2024-07-27 06:49:29 +00:00
|
|
|
vendorHash = "sha256-vGX77+I/zdTBhVSywd7msjrJ0KtcdZRgvWZWQC9M9og=";
|
2023-07-15 17:15:38 +00:00
|
|
|
|
|
|
|
ldflags = [ "-s" "-w" "-X main.version=${version}" ];
|
|
|
|
|
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
installShellCompletion --cmd humioctl \
|
|
|
|
--bash <($out/bin/humioctl completion bash) \
|
|
|
|
--zsh <($out/bin/humioctl completion zsh)
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/humio/cli";
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "CLI for managing and sending data to Humio";
|
2023-07-15 17:15:38 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ lucperkins ];
|
2024-02-29 20:09:43 +00:00
|
|
|
mainProgram = "humioctl";
|
2023-07-15 17:15:38 +00:00
|
|
|
};
|
|
|
|
}
|