github-actions
released this
12 Jul 09:29
·
106 commits
to master
since this release
Using Bzlmod with Bazel 6
- Enable with
common --enable_bzlmod
in.bazelrc
. - Add to your
MODULE.bazel
file:
For the core module
bazel_dep(name = "rules_nixpkgs_core", version = "0.12.0")
For the nodejs module
bazel_dep(name = "rules_nixpkgs_nodejs", version = "0.12.0")
Using WORKSPACE
Paste this snippet into your WORKSPACE.bazel
file:
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "io_tweag_rules_nixpkgs",
sha256 = "1adb04dc0416915fef427757f4272c4f7dacefeceeefc50f683aec7f7e9b787a",
strip_prefix = "rules_nixpkgs-0.12.0",
urls = ["https://github.com/tweag/rules_nixpkgs/releases/download/v0.12.0/rules_nixpkgs-0.12.0.tar.gz"],
)
load("@io_tweag_rules_nixpkgs//nixpkgs:repositories.bzl", "rules_nixpkgs_dependencies")
rules_nixpkgs_dependencies()
load("@io_tweag_rules_nixpkgs//nixpkgs:nixpkgs.bzl", "nixpkgs_git_repository", "nixpkgs_package", "nixpkgs_cc_configure")
load("@io_tweag_rules_nixpkgs//nixpkgs:toolchains/go.bzl", "nixpkgs_go_configure") # optional
0.12.0 - 2024-07-12
Added
- Make the C++ -std flag configurable. See #557.
- Add module extension for nodejs toolchain. See #505.
- Add bzlmod version of example to the guide. See #556.
Changed
Fixed
- Make
rules_nixpkgs_java
depend onremote_java_tools
properly. See #497. - Catch case in which find_children is called on an empty dir by @numine777 in #526
- Make
nixpkgs_java_configure
work with Bazel 7. See #499. - Fix
java_test
failure with JDK 17+. See #553. - Fix CPU detection on Darwin with Bazel 7. See #554.
- Fix cc toolchain on Darwin using nixpkgs >= 23.11. See #543.