mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-14 14:10:33 +03:00
Merge master into staging-next
This commit is contained in:
commit
ceb62729d2
92 changed files with 2149 additions and 12646 deletions
|
@ -399,7 +399,7 @@ Composed types are types that take a type as parameter. `listOf
|
|||
returned instead for the same `mkIf false` definition.
|
||||
:::
|
||||
|
||||
`types.attrsWith` { *`elemType`*, *`lazy`* ? false }
|
||||
`types.attrsWith` { *`elemType`*, *`lazy`* ? false, *`placeholder`* ? "name" }
|
||||
|
||||
: An attribute set of where all the values are of *`elemType`* type.
|
||||
|
||||
|
@ -411,10 +411,18 @@ Composed types are types that take a type as parameter. `listOf
|
|||
`lazy`
|
||||
: Determines whether the attribute set is lazily evaluated. See: `types.lazyAttrsOf`
|
||||
|
||||
`placeholder` (`String`, default: `name` )
|
||||
: Placeholder string in documentation for the attribute names.
|
||||
The default value `name` results in the placeholder `<name>`
|
||||
|
||||
**Behavior**
|
||||
|
||||
- `attrsWith { elemType = t; }` is equivalent to `attrsOf t`
|
||||
- `attrsWith { lazy = true; elemType = t; }` is equivalent to `lazyAttrsOf t`
|
||||
- `attrsWith { placeholder = "id"; elemType = t; }`
|
||||
|
||||
Displays the option as `foo.<id>` in the manual.
|
||||
|
||||
|
||||
`types.uniq` *`t`*
|
||||
|
||||
|
|
|
@ -1844,6 +1844,12 @@
|
|||
"sec-release-25.05-notable-changes": [
|
||||
"release-notes.html#sec-release-25.05-notable-changes"
|
||||
],
|
||||
"sec-release-25.05-lib": [
|
||||
"release-notes.html#sec-release-25.05-lib"
|
||||
],
|
||||
"sec-release-25.05-lib-breaking": [
|
||||
"release-notes.html#sec-release-25.05-lib-breaking"
|
||||
],
|
||||
"sec-release-24.11": [
|
||||
"release-notes.html#sec-release-24.11"
|
||||
],
|
||||
|
|
|
@ -129,3 +129,11 @@
|
|||
- `bind.cacheNetworks` now only controls access for recursive queries, where it previously controlled access for all queries.
|
||||
|
||||
<!-- To avoid merge conflicts, consider adding your item at an arbitrary place in the list instead. -->
|
||||
|
||||
## Nixpkgs Library {#sec-release-25.05-lib}
|
||||
|
||||
### Breaking changes {#sec-release-25.05-lib-breaking}
|
||||
|
||||
- Structure of the `functor` of some types has changed. `functor` is an implementation detail and should not be relied upon. If you did rely on it let us know in this [PR](https://github.com/NixOS/nixpkgs/pull/363565).
|
||||
- [`lib.types.enum`](https://nixos.org/manual/nixos/unstable/#sec-option-types-basic): Previously the `functor.payload` was the list of enum values directly. Now it is an attribute set containing the values in the `values` attribute.
|
||||
- [`lib.types.separatedString`](https://nixos.org/manual/nixos/unstable/#sec-option-types-string): Previously the `functor.payload` was the seperator directly. Now it is an attribute set containing the seperator in the `sep` attribute.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue