Release 0.9.0
0.9.0 - 2022-07-18
Added
- Support registering a Java toolchain for Bazel 5
See #185 nixpkgs_cc_configure
gained a flag to disable automatic registration of the toolchain it creates.
See #179- Rust toolchain and example
See #178 - python-container example
See #226 - Allow to specify platform constraints in
nixpkgs_cc_configure
See #164 - add
fail_not_supported to
nixpkgs_go_configure`
See #167 - add exec/target constraints parameters to python toolchain macro
See #169 - Support codesigning on MacOs
See #224
Changed
-
Split into separate components in preparation for bzlmod
See #182 -
Detect whether compiler is Clang at nix eval time
See #216Note: If you have previously passed a custom
cc
toolchain tonixpkgs_cc_configure
you need to provide a booleanisClang
attribute now, e.g.:pkgs.buildEnv { name = "bazel-nixpkgs-cc"; paths = [ cumstom-cc ]; pathsToLink = [ "/bin" ]; passthru = { isClang = custom-cc.isClang; }; }
Fixed
- Avoid error when include dirs list is empty
See #234 - Ensure nixpkgs will work with Bazel build from source
See #231 - Fix call to
repository_ctx.file
usingnix_file_content
withnixpkgs_local_repository
See #210 - Fix python example build on macOS
See #189 nixpkgs_local_repository
strips executable bit of nix files
See #160
WORKSPACE setup
http_archive(
name = "io_tweag_rules_nixpkgs",
sha256 = "b01f170580f646ee3cde1ea4c117d00e561afaf3c59eda604cf09194a824ff10",
strip_prefix = "rules_nixpkgs-0.9.0",
urls = ["curl -L https://github.com/tweag/rules_nixpkgs/archive/refs/tags/v0.9.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")