1{ buildGoModule, fetchFromGitHub, lib }:
2
3buildGoModule rec {
4 pname = "grpc-gateway";
5 version = "2.16.0";
6
7 src = fetchFromGitHub {
8 owner = "grpc-ecosystem";
9 repo = "grpc-gateway";
10 rev = "v${version}";
11 sha256 = "sha256-yoy3wESegXxlyaelex2gqr3GdzwwjxK7YTAzDCILr/c=";
12 };
13
14 vendorHash = "sha256-dxzAiLEiZ+2+J9ZrkBemUt+slxz1zUa9Fx0VhUjFdN0=";
15
16 meta = with lib; {
17 description =
18 "A gRPC to JSON proxy generator plugin for Google Protocol Buffers";
19 longDescription = ''
20 This is a plugin for the Google Protocol Buffers compiler (protoc). It reads
21 protobuf service definitions and generates a reverse-proxy server which
22 translates a RESTful HTTP API into gRPC. This server is generated according to
23 the google.api.http annotations in the protobuf service definitions.
24 '';
25 homepage = "https://github.com/grpc-ecosystem/grpc-gateway";
26 license = licenses.bsd3;
27 maintainers = with maintainers; [ happyalu ];
28 };
29}