Skip to content

v0.13.0

Latest
Compare
Choose a tag to compare
@github-actions github-actions released this 30 Jan 09:15

Using Bzlmod with Bazel 6+

  1. Enable with common --enable_bzlmod in .bazelrc.
  2. Add to your MODULE.bazel file:

For the core module

bazel_dep(name = "rules_nixpkgs_core", version = "0.13.0")

For the nodejs module

bazel_dep(name = "rules_nixpkgs_nodejs", version = "0.13.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 = "30271f7bd380e4e20e4d7132c324946c4fdbc31ebe0bbb6638a0f61a37e74397",
    strip_prefix = "rules_nixpkgs-0.13.0",
    urls = ["https://github.com/tweag/rules_nixpkgs/releases/download/v0.13.0/rules_nixpkgs-0.13.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.13.0 - 2025-01-29

Added

  • Support for Bazel 8. See #622.
  • Support for new apple-sdk from Nixpkgs 24.11 and later. See #639.
  • Documentation for nixpkgs_java_configure with bzlmod. See #498.
  • Add extra_flags_per_feature to cc toolchain. See #575.
  • Add rustfmt_toolchain. See #625.

Removed

  • nixpkgs_cc_configure_deprecated was removed since it depended on Bazel's cc_autoconf_impl, which was removed from @bazel_tools and moved into a private package in rules_cc in Bazel 8. See #621.