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
|
{ stdenv, python, buildPythonPackage
|
||||||
, protobuf, google_apputils, pyext
|
, protobuf, google_apputils, pyext, libcxx
|
||||||
, disabled, doCheck ? true }:
|
, disabled, doCheck ? true }:
|
||||||
|
|
||||||
with stdenv.lib;
|
with stdenv.lib;
|
||||||
@ -8,6 +8,9 @@ buildPythonPackage rec {
|
|||||||
inherit (protobuf) name src;
|
inherit (protobuf) name src;
|
||||||
inherit disabled doCheck;
|
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 ];
|
propagatedBuildInputs = [ protobuf google_apputils ];
|
||||||
buildInputs = [ google_apputils pyext ];
|
buildInputs = [ google_apputils pyext ];
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user