2023-08-30 09:34:05 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub, testers, pb }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "pb";
|
2023-11-06 08:04:54 +00:00
|
|
|
version = "0.2.0";
|
2023-08-30 09:34:05 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "parseablehq";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2023-11-06 08:04:54 +00:00
|
|
|
hash = "sha256-jnMGBwwsQJnbvTTLxhpwORQ5m8xZxLA0PQVhW/MjMto=";
|
2023-08-30 09:34:05 +00:00
|
|
|
};
|
|
|
|
|
2023-11-06 08:04:54 +00:00
|
|
|
vendorHash = "sha256-jC3P0b8fLZbL1hyWTnA/w3Uk4uqWSxpWDs6nQv55/0c=";
|
2023-08-30 09:34:05 +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";
|
|
|
|
license = licenses.agpl3;
|
|
|
|
maintainers = with maintainers; [ aaronjheng ];
|
|
|
|
mainProgram = "pb";
|
|
|
|
};
|
|
|
|
}
|