2022-06-18 08:48:24 +00:00
|
|
|
{ buildGoModule, fetchFromGitHub, lib }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "grpc-gateway";
|
2022-07-20 01:37:42 +00:00
|
|
|
version = "2.11.0";
|
2022-06-18 08:48:24 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "grpc-ecosystem";
|
|
|
|
repo = "grpc-gateway";
|
|
|
|
rev = "v${version}";
|
2022-07-20 01:37:42 +00:00
|
|
|
sha256 = "sha256-Z3eZFd53c4cZG7CL3FrXQLi2n9A5TfUnZiB9KoA6sF4=";
|
2022-06-18 08:48:24 +00:00
|
|
|
};
|
|
|
|
|
2022-07-20 01:37:42 +00:00
|
|
|
vendorSha256 = "sha256-PKeqjr5MZWK6ILizwRJ7oy6eUj3cH9ju/55cbS5LT8M=";
|
2022-06-18 08:48:24 +00:00
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|