50 lines
1.1 KiB
Nix
50 lines
1.1 KiB
Nix
|
|
{
|
||
|
|
lib,
|
||
|
|
fetchFromGitHub,
|
||
|
|
buildGoModule,
|
||
|
|
versionCheckHook,
|
||
|
|
nix-update-script,
|
||
|
|
}:
|
||
|
|
|
||
|
|
buildGoModule rec {
|
||
|
|
pname = "bento";
|
||
|
|
version = "1.11.0";
|
||
|
|
|
||
|
|
src = fetchFromGitHub {
|
||
|
|
owner = "warpstreamlabs";
|
||
|
|
repo = "bento";
|
||
|
|
tag = "v${version}";
|
||
|
|
hash = "sha256-F5RUOcD6nKH5NS0nK78d94FtXduI/6AVJJ0qArP8Ziw=";
|
||
|
|
};
|
||
|
|
|
||
|
|
proxyVendor = true;
|
||
|
|
vendorHash = "sha256-hBjj3voqWvwURGsgIgySLyxfm0JKu4qHe/HLcUO0Fa0=";
|
||
|
|
|
||
|
|
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";
|
||
|
|
};
|
||
|
|
}
|