Skip to content

Release 0.8.0

Compare
Choose a tag to compare
@aherrmann aherrmann released this 11 Feb 14:03
· 1243 commits to master since this release
6178f2a

0.8.0 - 2021-02-11

Added

  • Bazel Skylib is now included as a dependency on rules_nixpkgs_dependencies.
    See #125.
  • nixpkgs_python_configure now exposes the quiet attribute for the
    underlying nispkgs_package.
    See #131.
  • The default BUILD file of nixpkgs_package now finds more kinds of C/C++
    header files in the include target.
    See #137.

Changed

  • The implementation of nixpkgs_cc_configure has been replaced by a more
    hermetic version that no longer uses Bazel's builtin autodection toolchain
    under the hood. The previous behavior is now available under the name
    nixpkgs_cc_configure_deprecated, if required.
    See #128.
  • The values in the nixopts attribute to nixpkgs_package are now subject to
    location expansion. Any instance of $(location LABEL) in the nixopts
    attribute will be expanded to the file path of the file referenced by
    LABEL. To pass a plain $ to Nix it must be escaped as $$.
    See #132.

Deprecated

  • The old implementation of nixpkgs_cc_configure, now available under the
    name nixpkgs_cc_configure_deprecated, has been marked as deprecated in
    favor of nixpkgs_cc_configure and will be replaced by it in future.
    See #128.

Fixed

  • Incorrect label contruction for Nix file dependencies.
    See #124.

WORKSPACE setup

http_archive(
    name = "io_tweag_rules_nixpkgs",
    sha256 = "7aee35c95251c1751e765f7da09c3bb096d41e6d6dca3c72544781a5573be4aa",
    strip_prefix = "rules_nixpkgs-0.8.0",
    urls = ["https://github.com/tweag/rules_nixpkgs/archive/refs/tags/v0.8.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")