diff --git a/pkgs/development/python-modules/protobuf/default.nix b/pkgs/development/python-modules/protobuf/default.nix index bfccdabd7596..4f00537db0c8 100644 --- a/pkgs/development/python-modules/protobuf/default.nix +++ b/pkgs/development/python-modules/protobuf/default.nix @@ -14,7 +14,8 @@ buildPythonPackage rec { ++ optional (versionOlder protobuf.version "2.7.0") "-std=c++98"; propagatedBuildInputs = [ google_apputils ]; - nativeBuildInputs = [ google_apputils pyext protobuf ]; + propagatedNativeBuildInputs = [ protobuf ]; # For protoc. + nativeBuildInputs = [ google_apputils pyext ]; buildInputs = [ protobuf ]; patches = optional isPy37