From 5553f68fab67f8886a5b5352dddf8def9b5d2c8a Mon Sep 17 00:00:00 2001 From: Connor Baker Date: Tue, 18 Feb 2025 17:03:46 -0800 Subject: [PATCH] doc: include no-broken-symlinks and nixLog in release notes --- doc/release-notes/rl-2505.section.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/doc/release-notes/rl-2505.section.md b/doc/release-notes/rl-2505.section.md index 6e5ad92b4240..301cb6d172a0 100644 --- a/doc/release-notes/rl-2505.section.md +++ b/doc/release-notes/rl-2505.section.md @@ -8,6 +8,14 @@ - `services.rippleDataApi` has been removed, as `ripple-data-api` was broken and had not been updated since 2022. +- The [`no-broken-symlinks` hook](#no-broken-symlinks.sh) was added to catch builds containing dangling or reflexive symlinks, as these are indicative of problems with packaging. + The hook can be disabled by providing `dontCheckForBrokenSymlinks = true;` as an argument to `mkDerivation`. + For more information, [check the docs](#no-broken-symlinks.sh) or [see this PR](https://github.com/NixOS/nixpkgs/pull/370750). + +- The `nixLog*` family of functions made available through the standard environment have been rewritten to prefix messages with both the debug level and the function name of the caller. + The `nixLog` function, which logs unconditionally, was also re-introduced and modified to prefix messages with the function name of the caller. + For more information, [see this PR](https://github.com/NixOS/nixpkgs/pull/370742). + - The `rustPlatform.fetchCargoTarball` function is deprecated, because it relied on `cargo vendor` not changing its output format to keep fixed-output derivation hashes the same, which is a Nix invariant, and Cargo 1.84.0 changed `cargo vendor`'s output format. It should generally be replaced with `rustPlatform.fetchCargoVendor`, but `rustPlatform.importCargoLock` may also be appropriate in some circumstances. `rustPlatform.buildRustPackage` users must set `useFetchCargoVendor` to `true` and regenerate the `cargoHash`.