v0.14.0
Using Bzlmod with Bazel 6+
- Enable with
common --enable_bzlmodin.bazelrc. - Add to your
MODULE.bazelfile:
For the core module
bazel_dep(name = "rules_nixpkgs_core", version = "0.14.0")For the nodejs module
bazel_dep(name = "rules_nixpkgs_nodejs", version = "0.14.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 = "fd79d6e81a2d9bce3cf91fab13308adf0be1959d6c676a17c709af98bca801e7",
strip_prefix = "rules_nixpkgs-0.14.0",
urls = ["https://github.com/tweag/rules_nixpkgs/releases/download/v0.14.0/rules_nixpkgs-0.14.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") # optional0.14.0 - 2026-09-04
Highlights
- Full support for Bazel 7, which is now the version tested against.
Added
rules_nixpkgsmodule extension withflake_packagetag, for depending on a Nix flakes package. See [#666].- Tested support for macOS ARM architecture. See [#711].
- Gcov is now included in the default cc toolchain. See [#668].
rust_analyzer_toolchainfromrules_rustis now supported. See [#656].nix_license_pathattribute for thenixpkgs_packageandnixpkgs_flake_packagerules, which effectively allows the export/propagation of a package's license. See [#655].- Support for using FlakeHub-backed Nix packages, by allowing tarball sources in addition to GitHub repository sources. See [#652].
Changed
- Dropped declared support for Bazel versions prior to Bazel 7; testing is against Bazel 7. See [#742].
- Updated to
nixpkgs25.05. See [#713].