From 1f0fa697be0dd2d0f2ae468dcb25a338721fcb7b Mon Sep 17 00:00:00 2001 From: Yueh-Shun Li Date: Fri, 1 Dec 2023 16:32:48 +0800 Subject: [PATCH] lib.extendMkDerivation: add a release note entry --- nixos/doc/manual/release-notes/rl-2411.section.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/nixos/doc/manual/release-notes/rl-2411.section.md b/nixos/doc/manual/release-notes/rl-2411.section.md index a8007c9a0694a..6f2fc9cf10adf 100644 --- a/nixos/doc/manual/release-notes/rl-2411.section.md +++ b/nixos/doc/manual/release-notes/rl-2411.section.md @@ -18,6 +18,12 @@ - NixOS now has support for *automatic boot assessment* (see [here](https://systemd.io/AUTOMATIC_BOOT_ASSESSMENT/)) for detailed description of the feature) for `systemd-boot` users. Available as [boot.loader.systemd-boot.bootCounting](#opt-boot.loader.systemd-boot.bootCounting.enable). +- [`lib.customisation.extendMkDerivation`](https://nixos.org/manual/nixpkgs/unstable#function-library-lib.customisation.extendMkDerivation) and [`lib.customisation.adaptMkDerivation`](https://nixos.org/manual/nixpkgs/unstable#function-library-lib.customisation.adaptMkDerivation) are introduced to bring [fixed-point arguments](https://nixos.org/manual/nixpkgs/unstable#chap-build-helpers-finalAttrs) support (capability to take `(finalAttrs: { ... })`) to arguments aside from `stdenv.mkDerivation`. + + `lib.extendMkDerivation` helps define a new build helper supporting (`(finalAttrs: { ... })`) based on another build helper with such support, while `lib.adaptMkDerivation` helps existing build helpers with arguments unable to pass to the base build helper (usually `stdenv.mkDerivation`) to adopt fixed-point arguments support with slight expression changes. + + See [Nixpkgs Manual chapter *Fixed-point arguments of build helpers*](https://nixos.org/manual/nixpkgs/unstable#chap-build-helpers-finalAttrs) for details. + ## New Services {#sec-release-24.11-new-services} - [FlareSolverr](https://github.com/FlareSolverr/FlareSolverr), proxy server to bypass Cloudflare protection. Available as [services.flaresolverr](#opt-services.flaresolverr.enable) service.