Browse Source

Merge pull request #93839 from lucperkins/humioctl

humioctl: init at 0.25.0
wip-nanopi-m4v2
Wael Nasreddine 6 years ago
committed by GitHub
parent
commit
eaca8a71ec
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 46 additions and 0 deletions
  1. +6
    -0
      maintainers/maintainer-list.nix
  2. +38
    -0
      pkgs/applications/logging/humioctl/default.nix
  3. +2
    -0
      pkgs/top-level/all-packages.nix

+ 6
- 0
maintainers/maintainer-list.nix View File

@@ -4803,6 +4803,12 @@
githubId = 59375051;
name = "Lucas Ransan";
};
lucperkins = {
email = "lucperkins@gmail.com";
github = "lucperkins";
githubId = 1523104;
name = "Luc Perkins";
};
lucus16 = {
email = "lars.jellema@gmail.com";
github = "Lucus16";


+ 38
- 0
pkgs/applications/logging/humioctl/default.nix View 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 ];
};
}

+ 2
- 0
pkgs/top-level/all-packages.nix View File

@@ -2013,6 +2013,8 @@ in

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

humioctl = callPackage ../applications/logging/humioctl {};

hyx = callPackage ../tools/text/hyx { };

icdiff = callPackage ../tools/text/icdiff {};


Loading…
Cancel
Save