forked from mirrors/nixpkgs
Merge pull request #26709 from robx/fix-python-protobuf-v2
python-modules/protobuf: fix darwin build by passing C++ includes exp…
This commit is contained in:
commit
031d26eb24
|
@ -1,5 +1,5 @@
|
|||
{ stdenv, python, buildPythonPackage
|
||||
, protobuf, google_apputils, pyext
|
||||
, protobuf, google_apputils, pyext, libcxx
|
||||
, disabled, doCheck ? true }:
|
||||
|
||||
with stdenv.lib;
|
||||
|
@ -8,6 +8,9 @@ buildPythonPackage rec {
|
|||
inherit (protobuf) name src;
|
||||
inherit disabled doCheck;
|
||||
|
||||
# work around python distutils compiling C++ with $CC
|
||||
NIX_CFLAGS_COMPILE = stdenv.lib.optionalString stdenv.isDarwin "-I${libcxx}/include/c++/v1";
|
||||
|
||||
propagatedBuildInputs = [ protobuf google_apputils ];
|
||||
buildInputs = [ google_apputils pyext ];
|
||||
|
||||
|
|
Loading…
Reference in a new issue