Skip to content

v0.14.0

Choose a tag to compare

@github-actions github-actions released this 04 Sep 18:14
· 33 commits to master since this release
9e67c2e

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.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") # optional

0.14.0 - 2026-09-04

Highlights

  • Full support for Bazel 7, which is now the version tested against.

Added

  • rules_nixpkgs module extension with flake_package tag, 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_toolchain from rules_rust is now supported. See [#656].
  • nix_license_path attribute for the nixpkgs_package and nixpkgs_flake_package rules, 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 nixpkgs 25.05. See [#713].

Fixed

  • pkgs.coreUtils is once again available on macOS. See [#712] for the fix, and [#424] for the original issue.
  • In nixpkgs_git_repository, actually use the remote argument, which was previously unused.