1 { buildGoModule, fetchFromGitHub, installShellFiles, lib }:
7 src = fetchFromGitHub {
11 hash = "sha256-2vkzde4l6GIIBzzNSewCtaVlBqkqpZQGXjw7VdJFPaE=";
14 vendorHash = "sha256-vGX77+I/zdTBhVSywd7msjrJ0KtcdZRgvWZWQC9M9og=";
16 ldflags = [ "-s" "-w" "-X main.version=${version}" ];
18 nativeBuildInputs = [ installShellFiles ];
21 installShellCompletion --cmd humioctl \
22 --bash <($out/bin/humioctl completion bash) \
23 --zsh <($out/bin/humioctl completion zsh)
27 homepage = "https://github.com/humio/cli";
28 description = "CLI for managing and sending data to Humio";
29 license = licenses.asl20;
30 maintainers = with maintainers; [ lucperkins ];
31 mainProgram = "humioctl";