depot/third_party/nixpkgs/pkgs/tools/networking/grpcui/default.nix

31 lines
780 B
Nix
Raw Normal View History

{ buildGoModule, fetchFromGitHub, lib }:
buildGoModule rec {
pname = "grpcui";
version = "1.4.1";
src = fetchFromGitHub {
owner = "fullstorydev";
repo = pname;
rev = "v${version}";
sha256 = "sha256-OIwfLuWY7Y0t85v+P/0F55vEe0hNohlqMl16Omr8AF0=";
};
vendorHash = "sha256-dEek7q8OjFgCn+f/qyiQL/5qu8RJp38vZk3OrBREHx4=";
doCheck = false;
subPackages = [ "cmd/grpcui" ];
ldflags = [ "-s" "-w" "-X main.version=${version}" ];
meta = with lib; {
description = "Interactive web UI for gRPC, along the lines of postman";
homepage = "https://github.com/fullstorydev/grpcui";
license = licenses.mit;
maintainers = with maintainers; [ pradyuman ];
platforms = platforms.linux ++ platforms.darwin;
mainProgram = "grpcui";
};
}