Skip to content

Commit 90b9c8e

Browse files
Luc Perkinslucperkins
authored andcommitted
humioctl: init at 0.25.0
1 parent 883af84 commit 90b9c8e

2 files changed

Lines changed: 41 additions & 1 deletion

File tree

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
{ buildGoModule, fetchFromGitHub, installShellFiles, stdenv }:
2+
3+
let
4+
humioCtlVersion = "0.25.0";
5+
sha256 = "1x8354m410nf9g167v0i1c77s5w2by7smdlyjwl89ixgdjw04ay3";
6+
vendorSha256 = "14bysjgvahr56hvd8walym11hh721i1q2g503n8m68wdzrrym4qy";
7+
in buildGoModule {
8+
name = "humioctl-${humioCtlVersion}";
9+
pname = "humioctl";
10+
version = humioCtlVersion;
11+
12+
vendorSha256 = vendorSha256;
13+
14+
src = fetchFromGitHub {
15+
owner = "humio";
16+
repo = "cli";
17+
rev = "v${humioCtlVersion}";
18+
sha256 = sha256;
19+
};
20+
21+
buildFlagsArray = "-ldflags=-X main.version=${humioCtlVersion}";
22+
23+
nativeBuildInputs = [ installShellFiles ];
24+
25+
postInstall = ''
26+
mv $out/bin/cli $out/bin/humioctl
27+
$out/bin/humioctl completion bash > humioctl.bash
28+
$out/bin/humioctl completion zsh > humioctl.zsh
29+
installShellCompletion humioctl.{bash,zsh}
30+
'';
31+
32+
meta = with stdenv.lib; {
33+
homepage = "https://github.com/humio/cli";
34+
description = "A CLI for managing and sending data to Humio";
35+
license = licenses.asl20;
36+
maintainers = with maintainers; [ lucperkins ];
37+
};
38+
}

pkgs/top-level/all-packages.nix

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2011,6 +2011,8 @@ in
20112011

20122012
hr = callPackage ../applications/misc/hr { };
20132013

2014+
humioctl = callPackage ../applications/logging/humioctl {};
2015+
20142016
hyx = callPackage ../tools/text/hyx { };
20152017

20162018
icdiff = callPackage ../tools/text/icdiff {};
@@ -7345,7 +7347,7 @@ in
73457347
uget = callPackage ../tools/networking/uget { };
73467348

73477349
uget-integrator = callPackage ../tools/networking/uget-integrator { };
7348-
7350+
73497351
ugrep = callPackage ../tools/text/ugrep { };
73507352

73517353
uif2iso = callPackage ../tools/cd-dvd/uif2iso { };

0 commit comments

Comments
 (0)