nixpkgs/pkgs/tools/misc/pb/default.nix

38 lines
865 B
Nix
Raw Normal View History

2023-08-30 09:34:05 +00:00
{ lib, buildGoModule, fetchFromGitHub, testers, pb }:
buildGoModule rec {
pname = "pb";
2023-11-15 07:07:31 +00:00
version = "0.4.0";
2023-08-30 09:34:05 +00:00
src = fetchFromGitHub {
owner = "parseablehq";
repo = pname;
rev = "v${version}";
2023-11-15 07:07:31 +00:00
hash = "sha256-ckRvtEtagyYpXJ0hh8jsgpE/16bu7b9IdNn2stvb2iI=";
2023-08-30 09:34:05 +00:00
};
2023-11-13 09:03:17 +00:00
vendorHash = "sha256-dNSr0bQz7XdC2fTD82TI8tfmwKBuAcbxjaMC9KAjxlI=";
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";
};
}