mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-03 20:33:21 +00:00
30 lines
983 B
Nix
30 lines
983 B
Nix
{ buildGoModule, fetchFromGitHub, lib }:
|
|
|
|
buildGoModule rec {
|
|
pname = "grpc-gateway";
|
|
version = "2.18.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "grpc-ecosystem";
|
|
repo = "grpc-gateway";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-FVb3x/wZ0jLI17lXAT/lcUpJiq3ZcvWjFnORynOvfmY=";
|
|
};
|
|
|
|
vendorHash = "sha256-SV2ZO8Y9yt6iyw9VvNY0xpqZIzLrTyHYYpIpzcEVsLY=";
|
|
|
|
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 ];
|
|
};
|
|
}
|