mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2025-01-07 14:00:59 +03:00
nixos/doc: Soft deprecate types.attrs
This commit is contained in:
parent
f3bf0f173e
commit
b3810166c7
@ -21,16 +21,6 @@
|
|||||||
</para>
|
</para>
|
||||||
|
|
||||||
<variablelist>
|
<variablelist>
|
||||||
<varlistentry>
|
|
||||||
<term>
|
|
||||||
<varname>types.attrs</varname>
|
|
||||||
</term>
|
|
||||||
<listitem>
|
|
||||||
<para>
|
|
||||||
A free-form attribute set.
|
|
||||||
</para>
|
|
||||||
</listitem>
|
|
||||||
</varlistentry>
|
|
||||||
<varlistentry>
|
<varlistentry>
|
||||||
<term>
|
<term>
|
||||||
<varname>types.bool</varname>
|
<varname>types.bool</varname>
|
||||||
@ -64,6 +54,24 @@
|
|||||||
</para>
|
</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
|
<varlistentry>
|
||||||
|
<term>
|
||||||
|
<varname>types.attrs</varname>
|
||||||
|
</term>
|
||||||
|
<listitem>
|
||||||
|
<para>
|
||||||
|
A free-form attribute set.
|
||||||
|
<warning><para>
|
||||||
|
This type will be deprecated in the future because it doesn't recurse
|
||||||
|
into attribute sets, silently drops earlier attribute definitions, and
|
||||||
|
doesn't discharge <literal>lib.mkDefault</literal>, <literal>lib.mkIf
|
||||||
|
</literal> and co. For allowing arbitrary attribute sets, prefer
|
||||||
|
<literal>types.attrsOf types.anything</literal> instead which doesn't
|
||||||
|
have these problems.
|
||||||
|
</para></warning>
|
||||||
|
</para>
|
||||||
|
</listitem>
|
||||||
|
</varlistentry>
|
||||||
</variablelist>
|
</variablelist>
|
||||||
|
|
||||||
<para>
|
<para>
|
||||||
|
Loading…
Reference in New Issue
Block a user