1be0098156
GitOrigin-RevId: 667e5581d16745bcda791300ae7e2d73f49fff25
29 lines
985 B
Nix
29 lines
985 B
Nix
{ buildGoModule, fetchFromGitHub, lib }:
|
|
|
|
buildGoModule rec {
|
|
pname = "grpc-gateway";
|
|
version = "2.13.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "grpc-ecosystem";
|
|
repo = "grpc-gateway";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-bJfqBXi77C0sa6ww0hNOwXYINp6q+KN02LdIHtlHp9Q=";
|
|
};
|
|
|
|
vendorSha256 = "sha256-Rr7O5pQntuvHfBurPW8FfJQmBWZOmVx7jPCu8HOs0ac=";
|
|
|
|
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 ];
|
|
};
|
|
}
|