Skip to content
Open
5 changes: 5 additions & 0 deletions .github/workflows/workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -324,6 +324,11 @@ jobs:
run: |
# Quote the package specifier so that it works on Windows
bazelisk test "//..."
- name: Setup tmate session
if: ${{ failure() }}
uses: mxschmitt/action-tmate@v3
with:
limit-access-to-actor: true

all_ci_tests:
runs-on: ubuntu-24.04
Expand Down
2 changes: 1 addition & 1 deletion MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ bazel_dep(
)
bazel_dep(
name = "rules_cc",
version = "0.0.9",
version = "0.0.15",
)
bazel_dep(
name = "rules_nodejs",
Expand Down
18 changes: 18 additions & 0 deletions WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,24 @@ rules_shell_dependencies()

rules_shell_toolchains()

load("@platforms//host:extension.bzl", "host_platform_repo")

host_platform_repo(name = "host_platform")

load("@rules_cc//cc:repositories.bzl", "rules_cc_dependencies", "rules_cc_toolchains")

rules_cc_dependencies()

rules_cc_toolchains()

load("@bazel_features//:deps.bzl", "bazel_features_deps")

bazel_features_deps()

load("@rules_cc//cc:extensions.bzl", "compatibility_proxy_repo")

compatibility_proxy_repo()

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

http_archive(
Expand Down
4 changes: 4 additions & 0 deletions docs/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ bzl_library(
deps = [
":haskell_nix",
"//haskell",
"@rules_cc//cc:find_cc_toolchain_bzl",
"@rules_cc//cc/common",
"@rules_shell//shell:rules_bzl",
],
),
Expand All @@ -79,6 +81,8 @@ bzl_library(
deps = [
":haskell_nix",
"//haskell",
"@rules_cc//cc:find_cc_toolchain_bzl",
"@rules_cc//cc/common",
"@rules_shell//shell:rules_bzl",
],
),
Expand Down
2 changes: 1 addition & 1 deletion examples/MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ bazel_dep(

bazel_dep(
name = "rules_cc",
version = "0.0.9",
version = "0.2.0",
)
bazel_dep(
name = "rules_sh",
Expand Down
18 changes: 18 additions & 0 deletions examples/WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,24 @@ load("@rules_haskell//haskell:repositories.bzl", "rules_haskell_dependencies")

rules_haskell_dependencies()

load("@platforms//host:extension.bzl", "host_platform_repo")

host_platform_repo(name = "host_platform")

load("@rules_cc//cc:repositories.bzl", "rules_cc_dependencies", "rules_cc_toolchains")

rules_cc_dependencies()

rules_cc_toolchains()

load("@bazel_features//:deps.bzl", "bazel_features_deps")

bazel_features_deps()

load("@rules_cc//cc:extensions.bzl", "compatibility_proxy_repo")

compatibility_proxy_repo()

load("@rules_haskell//haskell:nixpkgs.bzl", "haskell_register_ghc_nixpkgs")

GHC_VERSION = "9.4.8"
Expand Down
10 changes: 10 additions & 0 deletions examples/arm/WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,16 @@ load(

rules_haskell_dependencies()

load("@rules_cc//cc:repositories.bzl", "rules_cc_dependencies", "rules_cc_toolchains")

rules_cc_dependencies()

rules_cc_toolchains()

load("@rules_cc//cc:extensions.bzl", "compatibility_proxy_repo")

compatibility_proxy_repo()

load(
"@rules_haskell//haskell:cabal.bzl",
"stack_snapshot",
Expand Down
14 changes: 11 additions & 3 deletions haskell/repositories.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,20 @@ def rules_haskell_dependencies():
sha256 = "6e78f0e57de26801f6f564fa7c4a48dc8b36873e416257a92bbb0937eeac8446",
)

maybe(
http_archive,
name = "bazel_features",
sha256 = "bdc12fcbe6076180d835c9dd5b3685d509966191760a0eb10b276025fcb76158",
strip_prefix = "bazel_features-1.17.0",
url = "https://github.com/bazel-contrib/bazel_features/releases/download/v1.17.0/bazel_features-v1.17.0.tar.gz",
)

maybe(
http_archive,
name = "rules_cc",
urls = ["https://github.com/bazelbuild/rules_cc/releases/download/0.0.9/rules_cc-0.0.9.tar.gz"],
sha256 = "2037875b9a4456dce4a79d112a8ae885bbc4aad968e6587dca6e64f3a0900cdf",
strip_prefix = "rules_cc-0.0.9",
urls = ["https://github.com/bazelbuild/rules_cc/releases/download/0.2.0/rules_cc-0.2.0.tar.gz"],
sha256 = "ae244f400218f4a12ee81658ff246c0be5cb02c5ca2de5519ed505a6795431e9",
strip_prefix = "rules_cc-0.2.0",
)

maybe(
Expand Down
2 changes: 1 addition & 1 deletion rules_haskell_tests/MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ bazel_dep(
)
bazel_dep(
name = "rules_cc",
version = "0.0.9",
version = "0.2.0",
)
bazel_dep(
name = "rules_sh",
Expand Down
18 changes: 18 additions & 0 deletions rules_haskell_tests/WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,24 @@ load("@rules_haskell//haskell:repositories.bzl", "rules_haskell_dependencies")

rules_haskell_dependencies()

load("@platforms//host:extension.bzl", "host_platform_repo")

host_platform_repo(name = "host_platform")

load("@rules_cc//cc:repositories.bzl", "rules_cc_dependencies", "rules_cc_toolchains")

rules_cc_dependencies()

rules_cc_toolchains()

load("@bazel_features//:deps.bzl", "bazel_features_deps")

bazel_features_deps()

load("@rules_cc//cc:extensions.bzl", "compatibility_proxy_repo")

compatibility_proxy_repo()

load("//:non_module_deps.bzl", "repositories")

repositories(bzlmod = False)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,14 @@ nixpkgs_cc_configure(
repository = "@rules_haskell//nixpkgs:default.nix",
)

load("@bazel_features//:deps.bzl", "bazel_features_deps")

bazel_features_deps()

load("@rules_cc//cc:extensions.bzl", "compatibility_proxy_repo")

compatibility_proxy_repo()

nixpkgs_python_configure(
repository = "@rules_haskell//nixpkgs:default.nix",
)
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,14 @@ nixpkgs_cc_configure(
repository = "@rules_haskell//nixpkgs:default.nix",
)

load("@bazel_features//:deps.bzl", "bazel_features_deps")

bazel_features_deps()

load("@rules_cc//cc:extensions.bzl", "compatibility_proxy_repo")

compatibility_proxy_repo()

nixpkgs_python_configure(
repository = "@rules_haskell//nixpkgs:default.nix",
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,14 @@ nixpkgs_cc_configure(
repository = "@rules_haskell//nixpkgs:default.nix",
)

load("@bazel_features//:deps.bzl", "bazel_features_deps")

bazel_features_deps()

load("@rules_cc//cc:extensions.bzl", "compatibility_proxy_repo")

compatibility_proxy_repo()

nixpkgs_python_configure(
repository = "@rules_haskell//nixpkgs:default.nix",
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,11 @@ nixpkgs_cc_configure(
name = "nixpkgs_config_cc",
repository = "@rules_haskell//nixpkgs:default.nix",
)

load("@bazel_features//:deps.bzl", "bazel_features_deps")

bazel_features_deps()

load("@rules_cc//cc:extensions.bzl", "compatibility_proxy_repo")

compatibility_proxy_repo()
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,14 @@ nixpkgs_cc_configure(
repository = "@rules_haskell//nixpkgs:default.nix",
)

load("@bazel_features//:deps.bzl", "bazel_features_deps")

bazel_features_deps()

load("@rules_cc//cc:extensions.bzl", "compatibility_proxy_repo")

compatibility_proxy_repo()

nixpkgs_python_configure(
repository = "@rules_haskell//nixpkgs:default.nix",
)
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,14 @@ nixpkgs_cc_configure(
repository = "@rules_haskell//nixpkgs:default.nix",
)

load("@bazel_features//:deps.bzl", "bazel_features_deps")

bazel_features_deps()

load("@rules_cc//cc:extensions.bzl", "compatibility_proxy_repo")

compatibility_proxy_repo()

nixpkgs_python_configure(
repository = "@rules_haskell//nixpkgs:default.nix",
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,14 @@ nixpkgs_cc_configure(
repository = "@rules_haskell//nixpkgs:default.nix",
)

load("@bazel_features//:deps.bzl", "bazel_features_deps")

bazel_features_deps()

load("@rules_cc//cc:extensions.bzl", "compatibility_proxy_repo")

compatibility_proxy_repo()

nixpkgs_python_configure(
repository = "@rules_haskell//nixpkgs:default.nix",
)
Expand Down
18 changes: 18 additions & 0 deletions start
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,24 @@ load(
# Setup all Bazel dependencies required by rules_haskell.
rules_haskell_dependencies()

load("@platforms//host:extension.bzl", "host_platform_repo")

host_platform_repo(name = "host_platform")

load("@rules_cc//cc:repositories.bzl", "rules_cc_dependencies", "rules_cc_toolchains")

rules_cc_dependencies()

rules_cc_toolchains()

load("@bazel_features//:deps.bzl", "bazel_features_deps")

bazel_features_deps()

load("@rules_cc//cc:extensions.bzl", "compatibility_proxy_repo")

compatibility_proxy_repo()

load(
"@rules_haskell//haskell:toolchain.bzl",
"rules_haskell_toolchains",
Expand Down
18 changes: 18 additions & 0 deletions tutorial/WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,24 @@ load("@rules_haskell//haskell:repositories.bzl", "rules_haskell_dependencies")

rules_haskell_dependencies()

load("@platforms//host:extension.bzl", "host_platform_repo")

host_platform_repo(name = "host_platform")

load("@rules_cc//cc:repositories.bzl", "rules_cc_dependencies", "rules_cc_toolchains")

rules_cc_dependencies()

rules_cc_toolchains()

load("@bazel_features//:deps.bzl", "bazel_features_deps")

bazel_features_deps()

load("@rules_cc//cc:extensions.bzl", "compatibility_proxy_repo")

compatibility_proxy_repo()

load("@rules_haskell//haskell:nixpkgs.bzl", "haskell_register_ghc_nixpkgs")

GHC_VERSION = "9.4.8"
Expand Down
Loading