Merge pull request #112622 from bobrik/ivan/python-protobuf-no-flags

pythonPackages.protobuf: remove no longer useful NIX_CFLAGS_COMPILE
This commit is contained in:
Sandro 2021-02-16 04:26:54 +01:00 committed by GitHub
commit 479caef3ac
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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