Skip to content

Commit 45507bf

Browse files
Workaround apple-sdk/zlib incompatibility
1 parent 12718e2 commit 45507bf

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

WORKSPACE

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

55

6+
# workarorund for https://github.com/bazelbuild/bazel/issues/25124
7+
8+
zlib_version = "1.3.1"
9+
zlib_sha256 = "9a93b2b7dfdac77ceba5a558a580e74667dd6fede4585b91eefb60f03b72df23"
10+
http_archive(
11+
name = "zlib",
12+
build_file = "@com_google_protobuf//:third_party/zlib.BUILD",
13+
sha256 = zlib_sha256,
14+
strip_prefix = "zlib-%s" % zlib_version,
15+
urls = ["https://github.com/madler/zlib/releases/download/v{v}/zlib-{v}.tar.gz".format(v = zlib_version)],
16+
)
17+
618
# rules_nixpkgs and rules_haskell
719

820
http_archive(
@@ -12,9 +24,9 @@ http_archive(
1224

1325
http_archive(
1426
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"],
27+
sha256 = "f469fa2a577c0c904580fbb02d0a51e0e9e16bb6dbf25823d45f91dc01572694",
28+
strip_prefix = "rules_nixpkgs-329ca7c9479fb44176e5b5523fe0ecc12e5ff196",
29+
urls = ["https://github.com/tweag/rules_nixpkgs/archive/329ca7c9479fb44176e5b5523fe0ecc12e5ff196.tar.gz"],
1830
)
1931

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

0 commit comments

Comments
 (0)