1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-24 06:31:02 +00:00

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:
Daiderd Jordan 2017-06-21 08:52:13 +02:00 committed by GitHub
commit 031d26eb24

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