From b1d98133c0974f939922cc68726fec8d087ab439 Mon Sep 17 00:00:00 2001 From: Mark Sagi-Kazar Date: Sat, 23 Jul 2022 14:16:22 +0200 Subject: [PATCH] benthos: init at 4.3.0 Signed-off-by: Mark Sagi-Kazar --- pkgs/development/tools/benthos/default.nix | 30 ++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 32 insertions(+) create mode 100644 pkgs/development/tools/benthos/default.nix diff --git a/pkgs/development/tools/benthos/default.nix b/pkgs/development/tools/benthos/default.nix new file mode 100644 index 000000000000..8884a8ae8977 --- /dev/null +++ b/pkgs/development/tools/benthos/default.nix @@ -0,0 +1,30 @@ +{ lib, buildGoModule, fetchFromGitHub }: + +buildGoModule rec { + pname = "benthos"; + version = "4.3.0"; + + src = fetchFromGitHub { + owner = "benthosdev"; + repo = "benthos"; + rev = "v${version}"; + sha256 = "sha256-tRB9eTeyEyPkiR/sph76CMbPjJUNoDzfYuHmtFAzY7E="; + }; + + vendorSha256 = "sha256-nnaBQ7ADdAdo/+RQzXJHBBpXgTmxny0O/ij+eWsS5YM="; + + doCheck = false; + + subPackages = [ + "cmd/benthos" + ]; + + ldflags = [ "-s" "-w" "-X github.com/benthosdev/benthos/v4/internal/cli.Version=${version}" ]; + + meta = with lib; { + description = "Fancy stream processing made operationally mundane"; + homepage = "https://www.benthos.dev"; + license = licenses.mit; + maintainers = with maintainers; [ sagikazarmark ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 4f08816c0ba8..9e338421e207 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -276,6 +276,8 @@ with pkgs; bakelite = callPackage ../tools/backup/bakelite { }; + benthos = callPackage ../development/tools/benthos {}; + beyond-identity = callPackage ../tools/security/beyond-identity {}; bingo = callPackage ../development/tools/bingo {};