diff options
author | Wael Nasreddine <wael.nasreddine@gmail.com> | 2020-07-29 19:12:47 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-29 19:12:47 -0700 |
commit | eaca8a71ec91d8d796d6ba11683bed716db3dd3f (patch) | |
tree | aedc8884e93c340989b238c2351fc2f5afb818ef | |
parent | e6da2710024013e6e7c2fafb7e50be3660c0d1e8 (diff) | |
parent | ea15ee2d4bd86419b68ab7ad12828282c5a1c126 (diff) |
Merge pull request #93839 from lucperkins/humioctl
humioctl: init at 0.25.0
-rw-r--r-- | maintainers/maintainer-list.nix | 6 | ||||
-rw-r--r-- | pkgs/applications/logging/humioctl/default.nix | 38 | ||||
-rw-r--r-- | pkgs/top-level/all-packages.nix | 2 |
3 files changed, 46 insertions, 0 deletions
diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index 69bebcd91d571..afd66bf1823b5 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -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"; diff --git a/pkgs/applications/logging/humioctl/default.nix b/pkgs/applications/logging/humioctl/default.nix new file mode 100644 index 0000000000000..28bda827204f2 --- /dev/null +++ b/pkgs/applications/logging/humioctl/default.nix @@ -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 ]; + }; + } diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index ec10503b46577..8344ae4031943 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -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 {}; |