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

Revert "lib/types: remove loaOf"

authored by

Robert Hensing and committed by
GitHub
7d91ec68 bfdc69ec

+9
+9
lib/types.nix
··· 558 nestedTypes.elemType = elemType; 559 }; 560 561 # Value of given type but with no merging (i.e. `uniq list`s are not concatenated). 562 uniq = elemType: mkOptionType rec { 563 name = "uniq";
··· 558 nestedTypes.elemType = elemType; 559 }; 560 561 + # TODO: deprecate this in the future: 562 + loaOf = elemType: types.attrsOf elemType // { 563 + name = "loaOf"; 564 + deprecationMessage = "Mixing lists with attribute values is no longer" 565 + + " possible; please use `types.attrsOf` instead. See" 566 + + " https://github.com/NixOS/nixpkgs/issues/1800 for the motivation."; 567 + nestedTypes.elemType = elemType; 568 + }; 569 + 570 # Value of given type but with no merging (i.e. `uniq list`s are not concatenated). 571 uniq = elemType: mkOptionType rec { 572 name = "uniq";