1 { buildGoModule, fetchFromGitHub, lib, testers, grpc-gateway }:
4 pname = "grpc-gateway";
7 src = fetchFromGitHub {
8 owner = "grpc-ecosystem";
11 sha256 = "sha256-CdGQpQfOSimeio8v1lZ7xzE/oAS2qFyu+uN+H9i7vpo=";
14 vendorHash = "sha256-no7kZGpf/VOuceC3J+izGFQp5aMS3b+Rn+x4BFZ2zgs=";
17 "-X=main.version=${version}"
18 "-X=main.date=1970-01-01T00:00:00Z"
19 "-X=main.commit=unknown"
23 version = testers.testVersion {
24 package = grpc-gateway;
25 command = "protoc-gen-grpc-gateway --version";
26 version = "Version ${version}, commit unknown, built at 1970-01-01T00:00:00Z";
28 openapiv2Version = testers.testVersion {
29 package = grpc-gateway;
30 command = "protoc-gen-openapiv2 --version";
31 version = "Version ${version}, commit unknown, built at 1970-01-01T00:00:00Z";
37 "A gRPC to JSON proxy generator plugin for Google Protocol Buffers";
39 This is a plugin for the Google Protocol Buffers compiler (protoc). It reads
40 protobuf service definitions and generates a reverse-proxy server which
41 translates a RESTful HTTP API into gRPC. This server is generated according to
42 the google.api.http annotations in the protobuf service definitions.
44 homepage = "https://github.com/grpc-ecosystem/grpc-gateway";
45 license = licenses.bsd3;
46 maintainers = with maintainers; [ happyalu ];