lib/types: remove loaOf

This commit is contained in:
Sandro Jäckel 2022-12-19 08:31:10 +01:00
parent 76672661b9
commit c8c538f2ab
No known key found for this signature in database
GPG Key ID: 3AF5A43A3EECC2E5

View File

@ -558,15 +558,6 @@ rec {
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).
uniq = elemType: mkOptionType rec {
name = "uniq";