Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{
2 lib,
3 fetchFromGitHub,
4 buildGoModule,
5 versionCheckHook,
6 nix-update-script,
7}:
8
9buildGoModule rec {
10 pname = "bento";
11 version = "1.9.1";
12
13 src = fetchFromGitHub {
14 owner = "warpstreamlabs";
15 repo = "bento";
16 tag = "v${version}";
17 hash = "sha256-EGRM9tt8tycFxfrDBE/kAa0nat+dv1VmiPkIXcvCpA4=";
18 };
19
20 proxyVendor = true;
21 vendorHash = "sha256-Dwf4q5lXO2gtvfB0Ib5LmaXg/MSNir+RzLU4rfE/mB4=";
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 versionCheckProgramArg = "--version";
37 doInstallCheck = true;
38
39 passthru.updateScript = nix-update-script { };
40
41 meta = {
42 description = "High performance and resilient stream processor";
43 homepage = "https://warpstreamlabs.github.io/bento/";
44 changelog = "https://github.com/warpstreamlabs/bento/releases/tag/v${version}";
45 license = lib.licenses.mit;
46 maintainers = with lib.maintainers; [ genga898 ];
47 mainProgram = "bento";
48 };
49}