2022-08-19 20:42:51 +02:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "ghz";
|
2023-04-19 22:23:53 +02:00
|
|
|
version = "0.115.0";
|
2022-08-19 20:42:51 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "bojand";
|
|
|
|
repo = "ghz";
|
|
|
|
rev = "v${version}";
|
2023-04-19 22:23:53 +02:00
|
|
|
sha256 = "sha256-Y/RvXBE2+ztAPJrSBek1APkN7F3LIWAz13TGQUgFzR0=";
|
2022-08-19 20:42:51 +02:00
|
|
|
};
|
|
|
|
|
2023-04-19 22:23:53 +02:00
|
|
|
vendorHash = "sha256-BTfdKH2FBfIeHOG4dhOopoPQWHjhlJstQWWOkMwEOGs=";
|
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 ];
|
|
|
|
};
|
|
|
|
}
|