mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-11 12:15:34 +03:00
Revert "lib/types: remove loaOf"
This reverts commit c8c538f2ab
.
Reason: removal did not follow a deprecation process and it hurts
nixops 1.7 users.
This commit is contained in:
parent
f2e37ce5b7
commit
9af74cc709
1 changed files with 9 additions and 0 deletions
|
@ -558,6 +558,15 @@ rec {
|
||||||
nestedTypes.elemType = elemType;
|
nestedTypes.elemType = elemType;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# TODO: drop this in the future:
|
||||||
|
loaOf = elemType: types.attrsOf elemType // {
|
||||||
|
name = "loaOf";
|
||||||
|
deprecationMessage = "Mixing lists with attribute values is no longer"
|
||||||
|
+ " possible; please use `types.attrsOf` instead. See"
|
||||||
|
+ " https://github.com/NixOS/nixpkgs/issues/1800 for the motivation.";
|
||||||
|
nestedTypes.elemType = elemType;
|
||||||
|
};
|
||||||
|
|
||||||
# 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 {
|
||||||
name = "uniq";
|
name = "uniq";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue