diff options
author | Luc Perkins <lucperkins@gmail.com> | 2024-05-03 15:37:38 -0300 |
---|---|---|
committer | Luc Perkins <lucperkins@gmail.com> | 2024-05-03 15:37:38 -0300 |
commit | 1271860b5eb39783f3bba73bcebc9592da2d181f (patch) | |
tree | 90e1f65131c0dfc70217c543a19258e0c11204fd /pkgs/by-name/hu | |
parent | 84419726dfc85347db77b91263656846100c9471 (diff) |
Move lucperkins packages into by-name
Diffstat (limited to 'pkgs/by-name/hu')
-rw-r--r-- | pkgs/by-name/hu/humioctl/package.nix | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/pkgs/by-name/hu/humioctl/package.nix b/pkgs/by-name/hu/humioctl/package.nix new file mode 100644 index 0000000000000..d9f780c0b3a21 --- /dev/null +++ b/pkgs/by-name/hu/humioctl/package.nix @@ -0,0 +1,33 @@ +{ buildGoModule, fetchFromGitHub, installShellFiles, lib }: + +buildGoModule rec { + pname = "humioctl"; + version = "0.32.3"; + + src = fetchFromGitHub { + owner = "humio"; + repo = "cli"; + rev = "v${version}"; + hash = "sha256-MaBJL/3TZYmXjwt5/WmBBTXVhlJ6oyCgm+Lb8id6J3c="; + }; + + vendorHash = "sha256-FAy0LNmesEDgS3JTz5DPd8vkR5CHHhAbms++N8TQApA="; + + 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"; + description = "A CLI for managing and sending data to Humio"; + license = licenses.asl20; + maintainers = with maintainers; [ lucperkins ]; + mainProgram = "humioctl"; + }; +} |