1{ lib, buildGoModule, fetchFromGitHub, testers, pb }:
2
3buildGoModule rec {
4 pname = "pb";
5 version = "0.4.0";
6
7 src = fetchFromGitHub {
8 owner = "parseablehq";
9 repo = pname;
10 rev = "v${version}";
11 hash = "sha256-ckRvtEtagyYpXJ0hh8jsgpE/16bu7b9IdNn2stvb2iI=";
12 };
13
14 vendorHash = "sha256-dNSr0bQz7XdC2fTD82TI8tfmwKBuAcbxjaMC9KAjxlI=";
15
16 ldflags = [
17 "-s"
18 "-w"
19 "-X main.Version=${version}"
20 ];
21
22 tags = [ "kqueue" ];
23
24 passthru.tests.version = testers.testVersion {
25 package = pb;
26 command = "pb version";
27 };
28
29 meta = with lib; {
30 homepage = "https://github.com/parseablehq/pb";
31 changelog = "https://github.com/parseablehq/pb/releases/tag/v${version}";
32 description = "CLI client for Parseable server";
33 license = licenses.agpl3Plus;
34 maintainers = with maintainers; [ aaronjheng ];
35 mainProgram = "pb";
36 };
37}