python-modules/protobuf: fix darwin build by passing C++ includes explicitly

Fixes #26531.

Copies the matplotlib solution, as mentioned by @knedlsepp.
This commit is contained in:
Robert Vollmert 2017-06-19 13:24:46 +02:00
parent c1e5ca92b7
commit 9ea503fa55
1 changed files with 4 additions and 1 deletions

View File

@ -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 ];