pb: init at 0.1.0

This commit is contained in:
Aaron Jheng 2023-08-30 17:34:05 +08:00
parent 020300a756
commit 11322c28c5
No known key found for this signature in database
GPG key ID: F6A547A869D050A3
2 changed files with 39 additions and 0 deletions

View file

@ -0,0 +1,37 @@
{ lib, buildGoModule, fetchFromGitHub, testers, pb }:
buildGoModule rec {
pname = "pb";
version = "0.1.0";
src = fetchFromGitHub {
owner = "parseablehq";
repo = pname;
rev = "v${version}";
hash = "sha256-MCWDCFW37OTy6Hd9pVem+gwKGdZ7htIXFbdUciqAjU8=";
};
vendorHash = "sha256-WDBjAAaeKeMJOwX8w9PLq9Y8IX2o5yzH2o+MNFSgYc4=";
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";
};
}

View file

@ -34776,6 +34776,8 @@ with pkgs;
metal-cli = callPackage ../development/tools/metal-cli { };
pb = callPackage ../tools/misc/pb { };
pb_cli = callPackage ../tools/misc/pb_cli { };
capture = callPackage ../tools/misc/capture { };