Skip to content

Commit 71932e7

Browse files
Workaround apple-sdk/zlib incompatibility
1 parent 12718e2 commit 71932e7

File tree

1 file changed

+25
-3
lines changed

1 file changed

+25
-3
lines changed

WORKSPACE

Lines changed: 25 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,28 @@ workspace(name = "io_tweag_inline_java")
33
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
44

55

6+
# workarorund https://github.com/bazelbuild/bazel/issues/25124 by using the latest rules_nixpkgs
7+
8+
http_archive(
9+
name = "io_tweag_rules_nixpkgs_rules_java",
10+
sha256 = "f469fa2a577c0c904580fbb02d0a51e0e9e16bb6dbf25823d45f91dc01572694",
11+
strip_prefix = "rules_nixpkgs-329ca7c9479fb44176e5b5523fe0ecc12e5ff196/testing/java",
12+
urls = ["https://github.com/tweag/rules_nixpkgs/archive/329ca7c9479fb44176e5b5523fe0ecc12e5ff196.tar.gz"],
13+
)
14+
15+
http_archive(
16+
name = "remote_java_tools",
17+
sha256 = "30a7d845bec3dd054ac45b5546c2fdf1922c0b1040b2a13b261fcc2e2d63a2f4",
18+
urls = [
19+
"https://mirror.bazel.build/bazel_java_tools/releases/java/v13.3/java_tools-v13.3.zip",
20+
"https://github.com/bazelbuild/java_tools/releases/download/java_v13.3/java_tools-v13.3.zip",
21+
],
22+
# zlib needs to be upgradeded from 1.3 to 1.3.1 to work with apple-sdk_11 and later
23+
patches = ["@io_tweag_rules_nixpkgs_rules_java//patches:remote_java_tools.patch"],
24+
patch_args = ["-d", "java_tools/zlib", "-p1"],
25+
)
26+
27+
628
# rules_nixpkgs and rules_haskell
729

830
http_archive(
@@ -12,9 +34,9 @@ http_archive(
1234

1335
http_archive(
1436
name = "io_tweag_rules_nixpkgs",
15-
sha256 = "30271f7bd380e4e20e4d7132c324946c4fdbc31ebe0bbb6638a0f61a37e74397",
16-
strip_prefix = "rules_nixpkgs-0.13.0",
17-
urls = ["https://github.com/tweag/rules_nixpkgs/releases/download/v0.13.0/rules_nixpkgs-0.13.0.tar.gz"],
37+
sha256 = "f469fa2a577c0c904580fbb02d0a51e0e9e16bb6dbf25823d45f91dc01572694",
38+
strip_prefix = "rules_nixpkgs-329ca7c9479fb44176e5b5523fe0ecc12e5ff196",
39+
urls = ["https://github.com/tweag/rules_nixpkgs/archive/329ca7c9479fb44176e5b5523fe0ecc12e5ff196.tar.gz"],
1840
)
1941

2042
load("@io_tweag_rules_nixpkgs//nixpkgs:repositories.bzl", "rules_nixpkgs_dependencies")

0 commit comments

Comments
 (0)