mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-26 21:33:03 +03:00
humioctl: init at 0.25.0
This commit is contained in:
parent
883af843c3
commit
90b9c8e098
38
pkgs/applications/logging/humioctl/default.nix
Normal file
38
pkgs/applications/logging/humioctl/default.nix
Normal file
@ -0,0 +1,38 @@
|
||||
{ buildGoModule, fetchFromGitHub, installShellFiles, stdenv }:
|
||||
|
||||
let
|
||||
humioCtlVersion = "0.25.0";
|
||||
sha256 = "1x8354m410nf9g167v0i1c77s5w2by7smdlyjwl89ixgdjw04ay3";
|
||||
vendorSha256 = "14bysjgvahr56hvd8walym11hh721i1q2g503n8m68wdzrrym4qy";
|
||||
in buildGoModule {
|
||||
name = "humioctl-${humioCtlVersion}";
|
||||
pname = "humioctl";
|
||||
version = humioCtlVersion;
|
||||
|
||||
vendorSha256 = vendorSha256;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "humio";
|
||||
repo = "cli";
|
||||
rev = "v${humioCtlVersion}";
|
||||
sha256 = sha256;
|
||||
};
|
||||
|
||||
buildFlagsArray = "-ldflags=-X main.version=${humioCtlVersion}";
|
||||
|
||||
nativeBuildInputs = [ installShellFiles ];
|
||||
|
||||
postInstall = ''
|
||||
mv $out/bin/cli $out/bin/humioctl
|
||||
$out/bin/humioctl completion bash > humioctl.bash
|
||||
$out/bin/humioctl completion zsh > humioctl.zsh
|
||||
installShellCompletion humioctl.{bash,zsh}
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = "https://github.com/humio/cli";
|
||||
description = "A CLI for managing and sending data to Humio";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ lucperkins ];
|
||||
};
|
||||
}
|
@ -2011,6 +2011,8 @@ in
|
||||
|
||||
hr = callPackage ../applications/misc/hr { };
|
||||
|
||||
humioctl = callPackage ../applications/logging/humioctl {};
|
||||
|
||||
hyx = callPackage ../tools/text/hyx { };
|
||||
|
||||
icdiff = callPackage ../tools/text/icdiff {};
|
||||
@ -7345,7 +7347,7 @@ in
|
||||
uget = callPackage ../tools/networking/uget { };
|
||||
|
||||
uget-integrator = callPackage ../tools/networking/uget-integrator { };
|
||||
|
||||
|
||||
ugrep = callPackage ../tools/text/ugrep { };
|
||||
|
||||
uif2iso = callPackage ../tools/cd-dvd/uif2iso { };
|
||||
|
Loading…
Reference in New Issue
Block a user