2022-08-19 20:42:51 +02:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "ghz";
|
2022-11-07 22:17:34 +01:00
|
|
|
version = "0.111.0";
|
2022-08-19 20:42:51 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "bojand";
|
|
|
|
repo = "ghz";
|
|
|
|
rev = "v${version}";
|
2022-11-07 22:17:34 +01:00
|
|
|
sha256 = "sha256-FXehWUdFHsWYF/WXrJtmoDIb0Smh3D4aSJS8aOpvoxg=";
|
2022-08-19 20:42:51 +02:00
|
|
|
};
|
|
|
|
|
2022-09-06 15:57:01 +02:00
|
|
|
vendorSha256 = "sha256-VjrSUP0SwE5iOTevqIGlnSjH+TV4Ajx/PKuco9etkSc=";
|
2022-08-19 20:42:51 +02: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 ];
|
|
|
|
};
|
|
|
|
}
|