diff options
author | Mario Rodas <marsam@users.noreply.github.com> | 2021-03-28 09:34:38 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-28 09:34:38 -0500 |
commit | 9f759c4a1c219a7c943ed9552470046086bc8968 (patch) | |
tree | 41872a37ca39a39aeb8603a0f7c57423cea99ff8 /pkgs/development/libraries/grpc | |
parent | 4aacd02d330582775e6f4564b0ca95b8b02cf407 (diff) | |
parent | f3228cce6de1cfdbbf80920e5166fcbf46a51c7e (diff) |
Merge pull request #117160 from marsam/abseil-cpp-shared
abseil-cpp: build shared
Diffstat (limited to 'pkgs/development/libraries/grpc')
-rw-r--r-- | pkgs/development/libraries/grpc/default.nix | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/pkgs/development/libraries/grpc/default.nix b/pkgs/development/libraries/grpc/default.nix index 8883761c5d198..5cdd9886690ac 100644 --- a/pkgs/development/libraries/grpc/default.nix +++ b/pkgs/development/libraries/grpc/default.nix @@ -1,5 +1,5 @@ { lib, stdenv, fetchFromGitHub, fetchpatch, cmake, zlib, c-ares, pkg-config, re2, openssl, protobuf -, gflags, libnsl +, gflags, abseil-cpp, libnsl }: stdenv.mkDerivation rec { @@ -21,7 +21,7 @@ stdenv.mkDerivation rec { ]; nativeBuildInputs = [ cmake pkg-config ]; - propagatedBuildInputs = [ c-ares re2 zlib ]; + propagatedBuildInputs = [ c-ares re2 zlib abseil-cpp ]; buildInputs = [ c-ares.cmake-config openssl protobuf gflags ] ++ lib.optionals stdenv.isLinux [ libnsl ]; @@ -32,8 +32,10 @@ stdenv.mkDerivation rec { "-DgRPC_SSL_PROVIDER=package" "-DgRPC_PROTOBUF_PROVIDER=package" "-DgRPC_GFLAGS_PROVIDER=package" + "-DgRPC_ABSL_PROVIDER=package" "-DBUILD_SHARED_LIBS=ON" "-DCMAKE_SKIP_BUILD_RPATH=OFF" + "-DCMAKE_CXX_STANDARD=17" ]; # CMake creates a build directory by default, this conflicts with the |