summaryrefslogtreecommitdiff
path: root/science/py-tensorflow/files/patch-WORKSPACE
diff options
context:
space:
mode:
Diffstat (limited to 'science/py-tensorflow/files/patch-WORKSPACE')
-rw-r--r--science/py-tensorflow/files/patch-WORKSPACE61
1 files changed, 61 insertions, 0 deletions
diff --git a/science/py-tensorflow/files/patch-WORKSPACE b/science/py-tensorflow/files/patch-WORKSPACE
new file mode 100644
index 000000000000..25f4dbfacc15
--- /dev/null
+++ b/science/py-tensorflow/files/patch-WORKSPACE
@@ -0,0 +1,61 @@
+--- WORKSPACE.orig 2021-01-04 20:18:42 UTC
++++ WORKSPACE
+@@ -12,6 +12,15 @@ http_archive(
+ ],
+ )
+
++http_archive(
++ name = "io_bazel_rules_docker",
++ sha256 = "7d453450e1eb70e238eea6b31f4115607ec1200e91afea01c25f9804f37e39c8",
++ strip_prefix = "rules_docker-0.10.0",
++ urls = [
++ "https://github.com/bazelbuild/rules_docker/releases/download/v0.10.0/rules_docker-v0.10.0.tar.gz",
++ ],
++)
++
+ # Load tf_repositories() before loading dependencies for other repository so
+ # that dependencies like com_google_protobuf won't be overridden.
+ load("//tensorflow:workspace.bzl", "tf_repositories")
+@@ -78,6 +87,42 @@ http_file(
+ executable = 1,
+ urls = ["https://github.com/google/xctestrunner/releases/download/0.2.7/ios_test_runner.par"],
+ ) # https://github.com/google/xctestrunner/releases
++
++new_local_repository(
++ name = "jsonHeaders",
++ path = "%%LOCALBASE%%/include/json",
++ build_file_content = """
++
++package(
++ default_visibility = [
++ "//visibility:public",
++ ],
++)
++
++cc_library(
++ name = "headers",
++ srcs = glob(["*.h"]),
++)
++""",
++)
++
++new_local_repository(
++ name = "absl_Headers",
++ path = "%%LOCALBASE%%/include/absl",
++ build_file_content = """
++
++package(
++ default_visibility = [
++ "//visibility:public",
++ ],
++)
++cc_library(
++ name = "abslHeaders",
++ srcs = glob(["*/*.h", "*/*/*.h", "*/*/*/*/*/*.h"]),
++)
++
++""",
++)
+ # Use `swift_rules_dependencies` to fetch the toolchains. With the
+ # `git_repository` rules above, the following call will skip redefining them.
+ load("@build_bazel_rules_swift//swift:repositories.bzl", "swift_rules_dependencies")