depot/third_party/nixpkgs/pkgs/development/tools/grpc-gateway/default.nix
Default email 9c6ee729d6 Project import generated by Copybara.
GitOrigin-RevId: 6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222
2023-07-15 19:15:38 +02:00

29 lines
983 B
Nix

{ buildGoModule, fetchFromGitHub, lib }:
buildGoModule rec {
pname = "grpc-gateway";
version = "2.16.0";
src = fetchFromGitHub {
owner = "grpc-ecosystem";
repo = "grpc-gateway";
rev = "v${version}";
sha256 = "sha256-yoy3wESegXxlyaelex2gqr3GdzwwjxK7YTAzDCILr/c=";
};
vendorHash = "sha256-dxzAiLEiZ+2+J9ZrkBemUt+slxz1zUa9Fx0VhUjFdN0=";
meta = with lib; {
description =
"A gRPC to JSON proxy generator plugin for Google Protocol Buffers";
longDescription = ''
This is a plugin for the Google Protocol Buffers compiler (protoc). It reads
protobuf service definitions and generates a reverse-proxy server which
translates a RESTful HTTP API into gRPC. This server is generated according to
the google.api.http annotations in the protobuf service definitions.
'';
homepage = "https://github.com/grpc-ecosystem/grpc-gateway";
license = licenses.bsd3;
maintainers = with maintainers; [ happyalu ];
};
}