{ lib, fetchFromGitHub, buildGoModule, versionCheckHook, nix-update-script, }: buildGoModule rec { pname = "bento"; version = "1.9.1"; src = fetchFromGitHub { owner = "warpstreamlabs"; repo = "bento"; tag = "v${version}"; hash = "sha256-EGRM9tt8tycFxfrDBE/kAa0nat+dv1VmiPkIXcvCpA4="; }; proxyVendor = true; vendorHash = "sha256-Dwf4q5lXO2gtvfB0Ib5LmaXg/MSNir+RzLU4rfE/mB4="; subPackages = [ "cmd/bento" "cmd/serverless/bento-lambda" ]; ldflags = [ "-s" "-w" "-X github.com/warpstreamlabs/bento/internal/cli.Version=${version}" "-X main.Version=${version}" ]; nativeInstallCheckInputs = [ versionCheckHook ]; versionCheckProgramArg = "--version"; doInstallCheck = true; passthru.updateScript = nix-update-script { }; meta = { description = "High performance and resilient stream processor"; homepage = "https://warpstreamlabs.github.io/bento/"; changelog = "https://github.com/warpstreamlabs/bento/releases/tag/v${version}"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ genga898 ]; mainProgram = "bento"; }; }