Skip to content

Commit 5b36968

Browse files
avdvfacundominguez
authored andcommitted
Explicitly require rules_nixpkgs toolchains
Note, nodejs is indeed required by rules_haskell.
1 parent 473183f commit 5b36968

File tree

1 file changed

+15
-10
lines changed

1 file changed

+15
-10
lines changed

WORKSPACE

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,33 +2,38 @@ 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(
2622
name = "rules_nixpkgs_core",
2723
sha256 = "30271f7bd380e4e20e4d7132c324946c4fdbc31ebe0bbb6638a0f61a37e74397",
2824
strip_prefix = "rules_nixpkgs-0.13.0/core",
2925
urls = ["https://github.com/tweag/rules_nixpkgs/releases/download/v0.13.0/rules_nixpkgs-0.13.0.tar.gz"],
3026
)
3127

28+
http_archive(
29+
name = "rules_haskell",
30+
sha256 = "4cae22bc84f327bf3cb7605021c3663160ff6bc8a0b7b6266062366bcbd19e79",
31+
strip_prefix = "rules_haskell-1.0",
32+
urls = ["https://github.com/tweag/rules_haskell/releases/download/v1.0/rules_haskell-1.0.tar.gz"],
33+
)
34+
35+
load("@rules_haskell//haskell:repositories.bzl", "rules_haskell_dependencies")
36+
rules_haskell_dependencies()
3237

3338
http_archive(
3439
name = "rules_nixpkgs_go",

0 commit comments

Comments
 (0)