Skip to content

Commit c49ea77

Browse files
committed
Explicitly require rules_nixpkgs toolchains
Note, nodejs is indeed required by rules_haskell.
1 parent 8de1e87 commit c49ea77

File tree

1 file changed

+13
-14
lines changed

1 file changed

+13
-14
lines changed

WORKSPACE

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,33 +2,32 @@ workspace(name = "io_tweag_inline_java")
22

33
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
44

5-
65
http_archive(
7-
name = "rules_haskell",
8-
sha256 = "4cae22bc84f327bf3cb7605021c3663160ff6bc8a0b7b6266062366bcbd19e79",
9-
strip_prefix = "rules_haskell-1.0",
10-
urls = ["https://github.com/tweag/rules_haskell/releases/download/v1.0/rules_haskell-1.0.tar.gz"],
6+
name = "bazel_skylib",
7+
urls = ["https://github.com/bazelbuild/bazel-skylib/releases/download/1.7.1/bazel-skylib-1.7.1.tar.gz"],
118
)
129

13-
load("@rules_haskell//haskell:repositories.bzl", "rules_haskell_dependencies")
14-
rules_haskell_dependencies()
15-
16-
17-
1810
http_archive(
1911
name = "io_tweag_rules_nixpkgs",
2012
sha256 = "30271f7bd380e4e20e4d7132c324946c4fdbc31ebe0bbb6638a0f61a37e74397",
2113
strip_prefix = "rules_nixpkgs-0.13.0",
2214
urls = ["https://github.com/tweag/rules_nixpkgs/releases/download/v0.13.0/rules_nixpkgs-0.13.0.tar.gz"],
2315
)
2416

17+
load("@io_tweag_rules_nixpkgs//nixpkgs:repositories.bzl", "rules_nixpkgs_dependencies")
18+
19+
rules_nixpkgs_dependencies(toolchains = ["cc", "posix", "rust", "python", "nodejs", "java"])
20+
2521
http_archive(
26-
name = "rules_nixpkgs_core",
27-
sha256 = "30271f7bd380e4e20e4d7132c324946c4fdbc31ebe0bbb6638a0f61a37e74397",
28-
strip_prefix = "rules_nixpkgs-0.13.0/core",
29-
urls = ["https://github.com/tweag/rules_nixpkgs/releases/download/v0.13.0/rules_nixpkgs-0.13.0.tar.gz"],
22+
name = "rules_haskell",
23+
sha256 = "4cae22bc84f327bf3cb7605021c3663160ff6bc8a0b7b6266062366bcbd19e79",
24+
strip_prefix = "rules_haskell-1.0",
25+
urls = ["https://github.com/tweag/rules_haskell/releases/download/v1.0/rules_haskell-1.0.tar.gz"],
3026
)
3127

28+
load("@rules_haskell//haskell:repositories.bzl", "rules_haskell_dependencies")
29+
rules_haskell_dependencies()
30+
3231
load("@rules_nixpkgs_core//:nixpkgs.bzl", "nixpkgs_local_repository")
3332

3433
nixpkgs_local_repository(

0 commit comments

Comments
 (0)