pythonPackages.protobuf: remove no longer useful NIX_CFLAGS_COMPILE

* It builds fine on `x86_64-darwin`
* It allows builds on `aarch64-darwin` (#105026)
* There are no Python versions older than 2.7
This commit is contained in:
Ivan Babrou 2021-02-09 23:02:17 -08:00
parent 30fc937aaa
commit 631aeb11cf

View File

@ -20,12 +20,6 @@ buildPythonPackage {
inherit disabled;
doCheck = doCheck && !isPy27; # setuptools>=41.4 no longer collects correctly on python2
NIX_CFLAGS_COMPILE = toString (
# work around python distutils compiling C++ with $CC
lib.optional stdenv.isDarwin "-I${libcxx}/include/c++/v1"
++ lib.optional (lib.versionOlder protobuf.version "2.7.0") "-std=c++98"
);
outputs = [ "out" "dev" ];
propagatedBuildInputs = [ six ] ++ lib.optionals isPy27 [ google-apputils ];