Skip to content

Commit

Permalink
python.pkgs.protobuf: fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
abbradar committed Sep 7, 2017
1 parent c4bed30 commit 4999aeb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pkgs/development/python-modules/protobuf.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,10 @@ 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";
NIX_CFLAGS_COMPILE =
# work around python distutils compiling C++ with $CC
optional stdenv.isDarwin "-I${libcxx}/include/c++/v1"
++ optional (versionOlder protobuf.version "2.7.0") "-std=c++98";

propagatedBuildInputs = [ protobuf google_apputils ];
buildInputs = [ google_apputils pyext ];
Expand Down

1 comment on commit 4999aeb

@FRidh
Copy link
Member

@FRidh FRidh commented on 4999aeb Sep 7, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pushed to release-17.09

Please sign in to comment.