2022-08-21 13:32:41 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "ghz";
|
2022-11-21 17:40:18 +00:00
|
|
|
version = "0.111.0";
|
2022-08-21 13:32:41 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "bojand";
|
|
|
|
repo = "ghz";
|
|
|
|
rev = "v${version}";
|
2022-11-21 17:40:18 +00:00
|
|
|
sha256 = "sha256-FXehWUdFHsWYF/WXrJtmoDIb0Smh3D4aSJS8aOpvoxg=";
|
2022-08-21 13:32:41 +00:00
|
|
|
};
|
|
|
|
|
2022-09-09 14:08:57 +00:00
|
|
|
vendorSha256 = "sha256-VjrSUP0SwE5iOTevqIGlnSjH+TV4Ajx/PKuco9etkSc=";
|
2022-08-21 13:32:41 +00:00
|
|
|
|
|
|
|
subPackages = [ "cmd/ghz" "cmd/ghz-web" ];
|
|
|
|
|
|
|
|
ldflags = [ "-s" "-w" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Simple gRPC benchmarking and load testing tool";
|
|
|
|
homepage = "https://ghz.sh";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = [ maintainers.zombiezen ];
|
|
|
|
};
|
|
|
|
}
|