grpc-gateway: init at 2.10.3
This commit is contained in:
parent
8bd29d39ec
commit
4b31cc7551
29
pkgs/development/tools/grpc-gateway/default.nix
Normal file
29
pkgs/development/tools/grpc-gateway/default.nix
Normal file
|
@ -0,0 +1,29 @@
|
||||||
|
{ buildGoModule, fetchFromGitHub, lib }:
|
||||||
|
|
||||||
|
buildGoModule rec {
|
||||||
|
pname = "grpc-gateway";
|
||||||
|
version = "2.10.3";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "grpc-ecosystem";
|
||||||
|
repo = "grpc-gateway";
|
||||||
|
rev = "v${version}";
|
||||||
|
sha256 = "sha256-4/iE+sK+ZbG6194i8E1ZHla/7C9blKGRHwM7iX7nvXU=";
|
||||||
|
};
|
||||||
|
|
||||||
|
vendorSha256 = "sha256-FhiTU9VmDZNCPBWrmCqmQo/kPdDe8Da1T2E06CVN2kw=";
|
||||||
|
|
||||||
|
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 ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -6757,6 +6757,8 @@ with pkgs;
|
||||||
|
|
||||||
grpcurl = callPackage ../tools/networking/grpcurl { };
|
grpcurl = callPackage ../tools/networking/grpcurl { };
|
||||||
|
|
||||||
|
grpc-gateway = callPackage ../development/tools/grpc-gateway { };
|
||||||
|
|
||||||
grpcui = callPackage ../tools/networking/grpcui { };
|
grpcui = callPackage ../tools/networking/grpcui { };
|
||||||
|
|
||||||
grpc-tools = callPackage ../development/tools/misc/grpc-tools { };
|
grpc-tools = callPackage ../development/tools/misc/grpc-tools { };
|
||||||
|
|
Loading…
Reference in a new issue