diff --git a/pkgs/development/python-modules/tensorflow/com_google_absl_fix_macos.patch b/pkgs/development/python-modules/tensorflow/com_google_absl_fix_macos.patch deleted file mode 100644 index 7da8ab1b2e9b05..00000000000000 --- a/pkgs/development/python-modules/tensorflow/com_google_absl_fix_macos.patch +++ /dev/null @@ -1,15 +0,0 @@ -diff -ru a/absl/base/config.h b/absl/base/config.h ---- a/absl/base/config.h -+++ b/absl/base/config.h -@@ -558,9 +558,9 @@ - __ENVIRONMENT_WATCH_OS_VERSION_MIN_REQUIRED__ < 50000) || \ - (defined(__ENVIRONMENT_TV_OS_VERSION_MIN_REQUIRED__) && \ - __ENVIRONMENT_TV_OS_VERSION_MIN_REQUIRED__ < 120000)))) --#define ABSL_INTERNAL_APPLE_CXX17_TYPES_UNAVAILABLE 1 -+// #define ABSL_INTERNAL_APPLE_CXX17_TYPES_UNAVAILABLE 1 - #else --#define ABSL_INTERNAL_APPLE_CXX17_TYPES_UNAVAILABLE 0 -+// #define ABSL_INTERNAL_APPLE_CXX17_TYPES_UNAVAILABLE 0 - #endif - - // ABSL_HAVE_STD_ANY diff --git a/pkgs/development/python-modules/tensorflow/default.nix b/pkgs/development/python-modules/tensorflow/default.nix index be0c33711cea97..ac2430d1a2b64b 100644 --- a/pkgs/development/python-modules/tensorflow/default.nix +++ b/pkgs/development/python-modules/tensorflow/default.nix @@ -449,9 +449,6 @@ let rm -f .bazelversion patchShebangs . '' - + lib.optionalString (stdenv.hostPlatform.system == "x86_64-darwin") '' - cat ${./com_google_absl_fix_macos.patch} >> third_party/absl/com_google_absl_fix_mac_and_nvcc_build.patch - '' + lib.optionalString (!withTensorboard) '' # Tensorboard pulls in a bunch of dependencies, some of which may # include security vulnerabilities. So we make it optional.