Merge pull request #132095 from 06kellyjac/grpc-web

protoc-gen-grpc-web: init at 1.2.1

authored by Sandro and committed by GitHub 268b1dec 2041928b

+42
+40
pkgs/development/tools/protoc-gen-grpc-web/default.nix
···
··· 1 + { lib, stdenv, fetchFromGitHub, fetchpatch, protobuf }: 2 + 3 + stdenv.mkDerivation rec { 4 + pname = "protoc-gen-grpc-web"; 5 + version = "1.2.1"; 6 + 7 + src = fetchFromGitHub { 8 + owner = "grpc"; 9 + repo = "grpc-web"; 10 + rev = version; 11 + sha256 = "sha256-NBENyc01O8NPo84z1CeZ7YvFvVGY2GSlcdxacRrQALw="; 12 + }; 13 + 14 + sourceRoot = "source/javascript/net/grpc/web"; 15 + 16 + # remove once PR merged 17 + # https://github.com/grpc/grpc-web/pull/1107 18 + patches = [ 19 + (fetchpatch { 20 + name = "add-prefix.patch"; 21 + url = "https://github.com/06kellyjac/grpc-web/commit/b0803be1080fc635a8d5b88da971835a888a0c77.patch"; 22 + stripLen = 4; 23 + sha256 = "sha256-Rw9Z7F8cYrc/UIGUN6yXOus4v+Qn9Yf1Nc301TFx85A="; 24 + }) 25 + ]; 26 + 27 + strictDeps = true; 28 + nativeBuildInputs = [ protobuf ]; 29 + buildInputs = [ protobuf ]; 30 + 31 + makeFlags = [ "PREFIX=$(out)" ]; 32 + 33 + meta = with lib; { 34 + homepage = "https://github.com/grpc/grpc-web"; 35 + changelog = "https://github.com/grpc/grpc-web/blob/${version}/CHANGELOG.md"; 36 + description = "gRPC web support for Google's protocol buffers"; 37 + license = licenses.asl20; 38 + maintainers = with maintainers; [ jk ]; 39 + }; 40 + }
+2
pkgs/top-level/all-packages.nix
··· 317 318 protoc-gen-go-grpc = callPackage ../development/tools/protoc-gen-go-grpc { }; 319 320 protoc-gen-twirp = callPackage ../development/tools/protoc-gen-twirp { }; 321 322 protoc-gen-twirp_php = callPackage ../development/tools/protoc-gen-twirp_php { };
··· 317 318 protoc-gen-go-grpc = callPackage ../development/tools/protoc-gen-go-grpc { }; 319 320 + protoc-gen-grpc-web = callPackage ../development/tools/protoc-gen-grpc-web { }; 321 + 322 protoc-gen-twirp = callPackage ../development/tools/protoc-gen-twirp { }; 323 324 protoc-gen-twirp_php = callPackage ../development/tools/protoc-gen-twirp_php { };