summary refs log tree commit diff
diff options
context:
space:
mode:
authorMatthew Bauer <mjbauer95@gmail.com>2020-04-27 14:46:03 -0500
committerGitHub <noreply@github.com>2020-04-27 14:46:03 -0500
commit712026ead1fd2654a231f288260c81dea0ca80c4 (patch)
tree92598e2278085edc03c0bfbc6d02fe5212222220
parenta7ca287ecb3bd5589d2f815a27f1152071d92b57 (diff)
parent849f26d61cb4fcacb74de3c4d907688b85624f4f (diff)
downloadnixpkgs-712026ead1fd2654a231f288260c81dea0ca80c4.tar
nixpkgs-712026ead1fd2654a231f288260c81dea0ca80c4.tar.gz
nixpkgs-712026ead1fd2654a231f288260c81dea0ca80c4.tar.bz2
nixpkgs-712026ead1fd2654a231f288260c81dea0ca80c4.tar.lz
nixpkgs-712026ead1fd2654a231f288260c81dea0ca80c4.tar.xz
nixpkgs-712026ead1fd2654a231f288260c81dea0ca80c4.tar.zst
nixpkgs-712026ead1fd2654a231f288260c81dea0ca80c4.zip
Merge pull request #85246 from matthewbauer/use-system-libraries-for-grpcio
python.pkgs.grpcio: use system openssl, zlib, and c-ares
-rw-r--r--pkgs/development/python-modules/grpcio/default.nix7
1 files changed, 6 insertions, 1 deletions
diff --git a/pkgs/development/python-modules/grpcio/default.nix b/pkgs/development/python-modules/grpcio/default.nix
index cdb252f7434..ecb15cc024d 100644
--- a/pkgs/development/python-modules/grpcio/default.nix
+++ b/pkgs/development/python-modules/grpcio/default.nix
@@ -1,6 +1,6 @@
 { stdenv, buildPythonPackage, darwin, grpc
 , six, protobuf, enum34, futures, isPy27, pkgconfig
-, cython}:
+, cython, c-ares, openssl, zlib }:
 
 buildPythonPackage rec {
   inherit (grpc) src version;
@@ -9,11 +9,16 @@ buildPythonPackage rec {
   nativeBuildInputs = [ cython pkgconfig ]
                     ++ stdenv.lib.optional stdenv.isDarwin darwin.cctools;
 
+  buildInputs = [ c-ares openssl zlib ];
   propagatedBuildInputs = [ six protobuf ]
                         ++ stdenv.lib.optionals (isPy27) [ enum34 futures ];
 
   preBuild = stdenv.lib.optionalString stdenv.isDarwin "unset AR";
 
+  GRPC_PYTHON_BUILD_SYSTEM_OPENSSL = 1;
+  GRPC_PYTHON_BUILD_SYSTEM_ZLIB = 1;
+  GRPC_PYTHON_BUILD_SYSTEM_CARES = 1;
+
   meta = with stdenv.lib; {
     description = "HTTP/2-based RPC framework";
     license = licenses.asl20;