Skip to content

Commit 12718e2

Browse files
avdvfacundominguez
authored andcommitted
Explicitly require rules_nixpkgs toolchains
Note, nodejs is indeed required by rules_haskell.
1 parent 441c8af commit 12718e2

File tree

1 file changed

+17
-9
lines changed

1 file changed

+17
-9
lines changed

WORKSPACE

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

55

6+
# rules_nixpkgs and rules_haskell
7+
68
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"],
9+
name = "bazel_skylib",
10+
urls = ["https://github.com/bazelbuild/bazel-skylib/releases/download/1.7.1/bazel-skylib-1.7.1.tar.gz"],
1111
)
1212

13-
load("@rules_haskell//haskell:repositories.bzl", "rules_haskell_dependencies")
14-
rules_haskell_dependencies()
15-
16-
17-
1813
http_archive(
1914
name = "io_tweag_rules_nixpkgs",
2015
sha256 = "30271f7bd380e4e20e4d7132c324946c4fdbc31ebe0bbb6638a0f61a37e74397",
2116
strip_prefix = "rules_nixpkgs-0.13.0",
2217
urls = ["https://github.com/tweag/rules_nixpkgs/releases/download/v0.13.0/rules_nixpkgs-0.13.0.tar.gz"],
2318
)
2419

20+
load("@io_tweag_rules_nixpkgs//nixpkgs:repositories.bzl", "rules_nixpkgs_dependencies")
21+
22+
rules_nixpkgs_dependencies(toolchains = ["cc", "posix", "rust", "python", "nodejs", "java"])
23+
2524
http_archive(
2625
name = "rules_nixpkgs_core",
2726
sha256 = "30271f7bd380e4e20e4d7132c324946c4fdbc31ebe0bbb6638a0f61a37e74397",
2827
strip_prefix = "rules_nixpkgs-0.13.0/core",
2928
urls = ["https://github.com/tweag/rules_nixpkgs/releases/download/v0.13.0/rules_nixpkgs-0.13.0.tar.gz"],
3029
)
3130

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

3341
http_archive(
3442
name = "rules_nixpkgs_go",

0 commit comments

Comments
 (0)