2022-08-19 18:42:51 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "ghz";
|
2023-07-01 15:49:55 +00:00
|
|
|
version = "0.117.0";
|
2022-08-19 18:42:51 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "bojand";
|
|
|
|
repo = "ghz";
|
|
|
|
rev = "v${version}";
|
2023-07-01 15:49:55 +00:00
|
|
|
sha256 = "sha256-aAqbSPcz7qQID4H0Vu3VTnbECvlj+We9K5F656k9jTw=";
|
2022-08-19 18:42:51 +00:00
|
|
|
};
|
|
|
|
|
2023-07-01 15:49:55 +00:00
|
|
|
vendorHash = "sha256-jtzCOF5TAHv3PiGxBx65IR/3x6JpqMzsWW8amab8hqQ=";
|
2022-08-19 18:42:51 +00:00
|
|
|
|
|
|
|
subPackages = [ "cmd/ghz" "cmd/ghz-web" ];
|
|
|
|
|
2023-07-01 22:45:34 +00:00
|
|
|
ldflags = [
|
|
|
|
"-s"
|
|
|
|
"-w"
|
|
|
|
"-X=main.version=${version}"
|
|
|
|
];
|
2022-08-19 18:42:51 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Simple gRPC benchmarking and load testing tool";
|
|
|
|
homepage = "https://ghz.sh";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = [ maintainers.zombiezen ];
|
|
|
|
};
|
|
|
|
}
|