@@ -3,6 +3,28 @@ workspace(name = "io_tweag_inline_java")
3
3
load ("@bazel_tools//tools/build_defs/repo:http.bzl" , "http_archive" )
4
4
5
5
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
+
6
28
# rules_nixpkgs and rules_haskell
7
29
8
30
http_archive (
@@ -12,9 +34,9 @@ http_archive(
12
34
13
35
http_archive (
14
36
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" ],
18
40
)
19
41
20
42
load ("@io_tweag_rules_nixpkgs//nixpkgs:repositories.bzl" , "rules_nixpkgs_dependencies" )
0 commit comments