File tree Expand file tree Collapse file tree
applications/logging/humioctl Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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+ }
Original file line number Diff line number Diff line change 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 {};
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 { };
You can’t perform that action at this time.
0 commit comments