2023-10-09 19:29:22 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub, testers, pb }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "pb";
|
2024-06-20 14:57:18 +00:00
|
|
|
version = "0.5.0";
|
2023-10-09 19:29:22 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "parseablehq";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2024-06-20 14:57:18 +00:00
|
|
|
hash = "sha256-dMc4IgtyYVFXGPUjevVyPo4XYImHJlgwp4jKnh3CedM=";
|
2023-10-09 19:29:22 +00:00
|
|
|
};
|
|
|
|
|
2024-06-20 14:57:18 +00:00
|
|
|
vendorHash = "sha256-38lXffh3ZkMtvHi9roLHW0A6bzb+LRC91I3DdYyq1h0=";
|
2023-10-09 19:29:22 +00:00
|
|
|
|
|
|
|
ldflags = [
|
|
|
|
"-s"
|
|
|
|
"-w"
|
|
|
|
"-X main.Version=${version}"
|
|
|
|
];
|
|
|
|
|
|
|
|
tags = [ "kqueue" ];
|
|
|
|
|
|
|
|
passthru.tests.version = testers.testVersion {
|
|
|
|
package = pb;
|
|
|
|
command = "pb version";
|
|
|
|
};
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/parseablehq/pb";
|
|
|
|
changelog = "https://github.com/parseablehq/pb/releases/tag/v${version}";
|
|
|
|
description = "CLI client for Parseable server";
|
2024-04-21 15:54:59 +00:00
|
|
|
license = licenses.agpl3Plus;
|
2023-10-09 19:29:22 +00:00
|
|
|
maintainers = with maintainers; [ aaronjheng ];
|
|
|
|
mainProgram = "pb";
|
|
|
|
};
|
|
|
|
}
|