Skip to content

Commit

Permalink
Merge pull request #254 from tweag/release-0.9.0
Browse files Browse the repository at this point in the history
Release 0.9.0 🚀
  • Loading branch information
mergify[bot] authored Jul 19, 2022
2 parents 935cd71 + 51ffd0e commit 9f08fb2
Show file tree
Hide file tree
Showing 9 changed files with 86 additions and 18 deletions.
70 changes: 69 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,79 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/).

[Unreleased]: https://github.com/tweag/rules_nixpkgs/compare/v0.8.0...HEAD

## [0.9.0] - 2022-07-19

[0.9.0]: https://github.com/tweag/rules_nixpkgs/compare/v0.9.0...v0.9.0

### Added

- nixpkgs_cc_configure gained a flag to disable automatic registration of the
toolchain it creates.
See [#179][#179]
See [#179]
- Support registering a Java toolchain for Bazel 5
See [#185]
- 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]

[#179]: https://github.com/tweag/rules_nixpkgs/pull/179
[#185]: https://github.com/tweag/rules_nixpkgs/pull/185
[#178]: https://github.com/tweag/rules_nixpkgs/pull/178
[#226]: https://github.com/tweag/rules_nixpkgs/pull/226
[#164]: https://github.com/tweag/rules_nixpkgs/pull/164
[#167]: https://github.com/tweag/rules_nixpkgs/pull/167
[#169]: https://github.com/tweag/rules_nixpkgs/pull/169
[#224]: https://github.com/tweag/rules_nixpkgs/pull/224

### Changed

- Split into separate components in preparation for [bzlmod](https://docs.bazel.build/versions/5.2.0/bzlmod.html)
See [#182]
- Detect whether compiler is Clang at nix eval time
See [#216]

*Note*: If you have previously passed a custom `cc` toolchain to [`nixpkgs_cc_configure`](https://github.com/tweag/rules_nixpkgs#nixpkgs_cc_configure) you need to provide a boolean `isClang` attribute now, e.g.:
```nix
pkgs.buildEnv {
name = "bazel-nixpkgs-cc";
paths = [ cumstom-cc ];
pathsToLink = [ "/bin" ];
passthru = {
isClang = custom-cc.isClang;
};
}
```

[#182]: https://github.com/tweag/rules_nixpkgs/pull/182
[#216]: https://github.com/tweag/rules_nixpkgs/pull/216

### 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` using `nix_file_content` with `nixpkgs_local_repository`
See [#210]
- Fix python example build on macOS
See [#189]
- `nixpkgs_local_repository` strips executable bit of nix files
See [#160]

[#234]: https://github.com/tweag/rules_nixpkgs/pull/234
[#231]: https://github.com/tweag/rules_nixpkgs/pull/231
[#210]: https://github.com/tweag/rules_nixpkgs/pull/210
[#189]: https://github.com/tweag/rules_nixpkgs/pull/189
[#160]: https://github.com/tweag/rules_nixpkgs/pull/160

## [0.8.0] - 2021-02-11

Expand Down
2 changes: 1 addition & 1 deletion core/MODULE.bazel
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module(
name = "rules_nixpkgs_core",
version = "0.8.1",
version = "0.9.0",
)

bazel_dep(name = "platforms", version = "0.0.4")
Expand Down
6 changes: 3 additions & 3 deletions core/docs/dependencies_1.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ def docs_dependencies_1():
maybe(
http_archive,
"rules_sh",
sha256 = "83a065ba6469135a35786eb741e17d50f360ca92ab2897857475ab17c0d29931",
strip_prefix = "rules_sh-0.2.0",
urls = ["https://github.com/tweag/rules_sh/archive/v0.2.0.tar.gz"],
sha256 = "d668bb32f112ead69c58bde2cae62f6b8acefe759a8c95a2d80ff6a85af5ac5e",
strip_prefix = "rules_sh-0.3.0",
urls = ["https://github.com/tweag/rules_sh/archive/v0.3.0.tar.gz"],
)

maybe(
Expand Down
4 changes: 2 additions & 2 deletions toolchains/cc/MODULE.bazel
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
module(
name = "rules_nixpkgs_cc",
version = "0.8.1",
version = "0.9.0",
)

bazel_dep(name = "rules_nixpkgs_core", version = "0.8.1")
bazel_dep(name = "rules_nixpkgs_core", version = "0.9.0")
bazel_dep(name = "bazel_skylib", version = "1.0.3")
bazel_dep(name = "rules_cc", version = "0.0.1")
6 changes: 3 additions & 3 deletions toolchains/go/MODULE.bazel
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
module(
name = "rules_nixpkgs_go",
version = "0.8.1",
version = "0.9.0",
)

bazel_dep(name = "rules_nixpkgs_core", version = "0.8.1")
bazel_dep(name = "rules_nixpkgs_core", version = "0.9.0")
# TODO: there is no BCR entry for `rules_go` yet, and you will have to add a
# local registry entry to map a commit to a module "version". the caller will
# also have to know this and point `--registry` at the file from right revision
# on GitHub!
# bazel_dep(name = "rules_go", repo_name = "rules_go", version = "0.26.0")
# bazel_dep(name = "rules_go", repo_name = "rules_go", version = "0.26.0")
4 changes: 2 additions & 2 deletions toolchains/java/MODULE.bazel
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module(
name = "rules_nixpkgs_java",
version = "0.8.1",
version = "0.9.0",
)

bazel_dep(name = "rules_nixpkgs_core", version = "0.8.1")
bazel_dep(name = "rules_nixpkgs_core", version = "0.9.0")
bazel_dep(name = "rules_java", version = "4.0.0")
6 changes: 3 additions & 3 deletions toolchains/posix/MODULE.bazel
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module(
name = "rules_nixpkgs_posix",
version = "0.8.1",
version = "0.9.0",
)

bazel_dep(name = "rules_nixpkgs_core", version = "0.8.1")
bazel_dep(name = "rules_sh", version = "0.2.0")
bazel_dep(name = "rules_nixpkgs_core", version = "0.9.0")
bazel_dep(name = "rules_sh", version = "0.3.0")
4 changes: 2 additions & 2 deletions toolchains/python/MODULE.bazel
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module(
name = "rules_nixpkgs_python",
version = "0.8.1",
version = "0.9.0",
)

bazel_dep(name = "rules_nixpkgs_core", version = "0.8.1")
bazel_dep(name = "rules_nixpkgs_core", version = "0.9.0")
bazel_dep(name = "bazel_skylib", version = "1.0.3")
2 changes: 1 addition & 1 deletion toolchains/rust/MODULE.bazel
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module(
name = "rules_nixpkgs_rust",
version = "0.8.1",
version = "0.9.0",
)

bazel_dep(name = "rules_nixpkgs_core", version = "0.8.1")
Expand Down

0 comments on commit 9f08fb2

Please sign in to comment.