Merge pull request #208171 from hercules-ci/revert-remove-loaOf

Revert "lib/types: remove loaOf"
This commit is contained in:
Robert Hensing
2022-12-29 01:09:42 +01:00
committed by GitHub
+9
View File
@@ -558,6 +558,15 @@ rec {
nestedTypes.elemType = elemType;
};
# TODO: deprecate 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";