diff --git a/pkgs/tools/networking/ghz/default.nix b/pkgs/tools/networking/ghz/default.nix new file mode 100644 index 000000000000..ddbb33ceceed --- /dev/null +++ b/pkgs/tools/networking/ghz/default.nix @@ -0,0 +1,26 @@ +{ lib, buildGoModule, fetchFromGitHub }: + +buildGoModule rec { + pname = "ghz"; + version = "0.109.0"; + + src = fetchFromGitHub { + owner = "bojand"; + repo = "ghz"; + rev = "v${version}"; + sha256 = "sha256-5l2PeN+VxTaORAkmAfI9TCGd4W6y8BFs/eY4T9nYJuc="; + }; + + vendorSha256 = "sha256-qZD+qxjjFgyQDtjOQcilS4w2sS9I+7iCK2/ThaAJTy4="; + + 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 ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index c69d97a72659..1572af1314c8 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -6591,6 +6591,8 @@ with pkgs; ghrepo-stats = with python3Packages; toPythonApplication ghrepo-stats; + ghz = callPackage ../tools/networking/ghz { }; + gibberish-detector = with python3Packages; toPythonApplication gibberish-detector; gibo = callPackage ../tools/misc/gibo { };