Skip to content

Commit

Permalink
Make the start script work with GHC/Hadrian 9.6.1
Browse files Browse the repository at this point in the history
  • Loading branch information
avdv committed May 15, 2023
1 parent a3bda7f commit fd50666
Showing 1 changed file with 27 additions and 3 deletions.
30 changes: 27 additions & 3 deletions start
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,14 @@ load(
# Setup all Bazel dependencies required by rules_haskell.
rules_haskell_dependencies()
http_archive(
name = "io_bazel_rules_go",
sha256 = "8e968b5fcea1d2d64071872b12737bbb5514524ee5f0a4f54f5920266c261acb",
urls = [
"https://mirror.bazel.build/github.com/bazelbuild/rules_go/releases/download/v0.28.0/rules_go-v0.28.0.zip",
"https://github.com/bazelbuild/rules_go/releases/download/v0.28.0/rules_go-v0.28.0.zip",
],
)
load(
"@rules_haskell//haskell:toolchain.bzl",
"rules_haskell_toolchains",
Expand Down Expand Up @@ -247,11 +255,27 @@ EOF
# Append toolchain and zlib rules
case "${MODE}" in
"bindists") cat <<-EOF
load(
"@rules_haskell//haskell:ghc_bindist_hadrian.bzl",
"haskell_register_ghc_bindists_hadrian",
)
load("@rules_haskell//:non_module_deps.bzl", "repositories")
repositories(bzlmod = False)
load("@aspect_rules_js//js:repositories.bzl", "rules_js_dependencies")
rules_js_dependencies()
load("@io_bazel_rules_go//go:deps.bzl", "go_register_toolchains", "go_rules_dependencies",)
go_rules_dependencies()
load("@rules_haskell//:non_module_deps_1.bzl", "test_cabalopts", "test_ghcopts")
# Download a GHC binary distribution from haskell.org and register it as a toolchain.
rules_haskell_toolchains(
version = "${GHC_VERSION}",
haskell_register_ghc_bindists_hadrian(
url = "https://downloads.haskell.org/~ghc/9.6.1/ghc-9.6.1-x86_64-deb9-linux.tar.xz",
sha256 = "3c727e93a82ff039fbedd6645518859849130a0fc93b7181cd69a41800aa639c",
strip_prefix = "ghc-9.6.1-x86_64-unknown-linux",
version = "9.6.1",
target = "x86_64-unknown-linux",
cabalopts = test_cabalopts,
ghcopts = test_ghcopts,
)
http_archive(
name = "zlib.dev",
build_file = "//:${ZLIB_BUILD_FILE}",
Expand Down

0 comments on commit fd50666

Please sign in to comment.