summaryrefslogtreecommitdiff
path: root/science/py-tensorflow/files/patch-WORKSPACE
blob: 25f4dbfacc151ef798147f3b8cfacb8b552565f4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
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")