diff options
author | Robert Hensing <robert@roberthensing.nl> | 2022-12-29 00:47:50 +0100 |
---|---|---|
committer | Robert Hensing <robert@roberthensing.nl> | 2022-12-29 00:48:22 +0100 |
commit | 9af74cc7096baa29e64edb2179604bcf494e55f3 (patch) | |
tree | b25927f6ef66e2843e7310c0c4b03d59bcad944c /lib/types.nix | |
parent | f2e37ce5b78330ebb54f5a392a5f809c5764053c (diff) |
Revert "lib/types: remove loaOf"
This reverts commit c8c538f2ab2432f2dd1eb637657c1bf5b54a147f. Reason: removal did not follow a deprecation process and it hurts nixops 1.7 users.
Diffstat (limited to 'lib/types.nix')
-rw-r--r-- | lib/types.nix | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/types.nix b/lib/types.nix index e7e8a99e5743b..270ac1748c796 100644 --- a/lib/types.nix +++ b/lib/types.nix @@ -558,6 +558,15 @@ 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"; |