nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 fetchFromGitHub,
4 buildGoModule,
5 versionCheckHook,
6 nix-update-script,
7}:
8
9buildGoModule rec {
10 pname = "bento";
11 version = "1.14.1";
12
13 src = fetchFromGitHub {
14 owner = "warpstreamlabs";
15 repo = "bento";
16 tag = "v${version}";
17 hash = "sha256-hnDWnN07sf8ymSbwrVIQJrgiEKr81osswcGi8emSGac=";
18 };
19
20 proxyVendor = true;
21 vendorHash = "sha256-pCfDRnCoEjeuFuLthk6zQ1Gh4Cb+Ix9J+lh1sqA1Bf8=";
22
23 subPackages = [
24 "cmd/bento"
25 "cmd/serverless/bento-lambda"
26 ];
27
28 ldflags = [
29 "-s"
30 "-w"
31 "-X github.com/warpstreamlabs/bento/internal/cli.Version=${version}"
32 "-X main.Version=${version}"
33 ];
34
35 nativeInstallCheckInputs = [ versionCheckHook ];
36 doInstallCheck = true;
37
38 passthru.updateScript = nix-update-script { };
39
40 meta = {
41 description = "High performance and resilient stream processor";
42 homepage = "https://warpstreamlabs.github.io/bento/";
43 changelog = "https://github.com/warpstreamlabs/bento/releases/tag/v${version}";
44 license = lib.licenses.mit;
45 maintainers = with lib.maintainers; [ genga898 ];
46 mainProgram = "bento";
47 };
48}