lib/types: Set deprecationMessage for types.loaOf
This commit is contained in:
parent
2bed3b2ad7
commit
3b7aca47e0
|
@ -329,14 +329,12 @@ rec {
|
||||||
};
|
};
|
||||||
|
|
||||||
# TODO: drop this in the future:
|
# TODO: drop this in the future:
|
||||||
loaOf =
|
loaOf = elemType: types.attrsOf elemType // {
|
||||||
let msg =
|
name = "loaOf";
|
||||||
''
|
deprecationMessage = "Mixing lists with attribute values is no longer"
|
||||||
`types.loaOf` has been removed and mixing lists with attribute values
|
+ " possible; please use `types.attrsOf` instead. See"
|
||||||
is no longer possible; please use `types.attrsOf` instead.
|
+ " https://github.com/NixOS/nixpkgs/issues/1800 for the motivation.";
|
||||||
See https://github.com/NixOS/nixpkgs/issues/1800 for the motivation.
|
};
|
||||||
'';
|
|
||||||
in builtins.trace msg types.attrsOf;
|
|
||||||
|
|
||||||
# Value of given type but with no merging (i.e. `uniq list`s are not concatenated).
|
# Value of given type but with no merging (i.e. `uniq list`s are not concatenated).
|
||||||
uniq = elemType: mkOptionType rec {
|
uniq = elemType: mkOptionType rec {
|
||||||
|
|
Loading…
Reference in New Issue