Skip to content

Commit

Permalink
lib.extendMkDerivation: add a release note entry
Browse files Browse the repository at this point in the history
  • Loading branch information
ShamrockLee committed Nov 6, 2024
1 parent 14cb730 commit 506a1be
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions nixos/doc/manual/release-notes/rl-2411.section.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,12 @@
Users can use it by `services.displayManager.ly.enable` and config it by
`services.displayManager.ly.settings` to generate `/etc/ly/config.ini`

- [`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.

- `srcOnly` was rewritten to be more readable, have additional warnings in the event that something is probably wrong, use the `stdenv` provided by the derivation, and Noogle-compatible documentation was added.

- The default sound server for most graphical sessions has been switched from PulseAudio to PipeWire.
Expand Down

0 comments on commit 506a1be

Please sign in to comment.