Merge #161852: protoc-gen-grpc-web: 1.3.0 -> 1.3.1
This commit is contained in:
commit
1a8c10bff5
2 changed files with 27 additions and 3 deletions
|
@ -2,13 +2,13 @@
|
|||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "protoc-gen-grpc-web";
|
||||
version = "1.3.0";
|
||||
version = "1.3.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "grpc";
|
||||
repo = "grpc-web";
|
||||
rev = version;
|
||||
sha256 = "sha256-piKpaylzuanhGR+7BzApplv8e/CWPoR9tG3vHrF7WXw=";
|
||||
sha256 = "sha256-NRShN4X9JmCjqPVY/q9oSxSOvv1bP//vM9iOZ6ap5vc=";
|
||||
};
|
||||
|
||||
sourceRoot = "source/javascript/net/grpc/web/generator";
|
||||
|
@ -17,7 +17,12 @@ stdenv.mkDerivation rec {
|
|||
nativeBuildInputs = [ protobuf ];
|
||||
buildInputs = [ protobuf ];
|
||||
|
||||
makeFlags = [ "PREFIX=$(out)" ];
|
||||
makeFlags = [ "PREFIX=$(out)" "STATIC=no" ];
|
||||
|
||||
patches = [
|
||||
# https://github.com/grpc/grpc-web/pull/1210
|
||||
./optional-static.patch
|
||||
];
|
||||
|
||||
doCheck = true;
|
||||
checkInputs = [ protobuf ];
|
||||
|
|
|
@ -0,0 +1,19 @@
|
|||
--- a/Makefile
|
||||
+++ b/Makefile
|
||||
@@ -18,12 +18,15 @@ CXXFLAGS += -std=c++11
|
||||
LDFLAGS += -L/usr/local/lib -lprotoc -lprotobuf -lpthread -ldl
|
||||
PREFIX ?= /usr/local
|
||||
MIN_MACOS_VERSION := 10.7 # Supports OS X Lion
|
||||
+STATIC ?= yes
|
||||
|
||||
UNAME_S := $(shell uname -s)
|
||||
ifeq ($(UNAME_S),Darwin)
|
||||
CXXFLAGS += -stdlib=libc++ -mmacosx-version-min=$(MIN_MACOS_VERSION)
|
||||
else ifeq ($(UNAME_S),Linux)
|
||||
- LDFLAGS += -static
|
||||
+ ifeq ($(STATIC),yes)
|
||||
+ LDFLAGS += -static
|
||||
+ endif
|
||||
endif
|
||||
|
||||
all: protoc-gen-grpc-web
|
Loading…
Reference in a new issue