diff options
author | Ivan Trubach | 2024-07-24 13:01:58 +0300 |
---|---|---|
committer | Ivan Trubach | 2024-07-24 13:23:16 +0300 |
commit | b9c51260d0620ffb0ef59d09b85d1f9d7b979b8c (patch) | |
tree | 7932eeb30b810bbd545280a763d167bb09511c55 /lib | |
parent | 7919709a2352effcb28542efe7b340a3369a57c4 (diff) |
lib/deprecated: print deprecation warning for mapAttrsFlatten
Diffstat (limited to 'lib')
-rw-r--r-- | lib/deprecated/misc.nix | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/deprecated/misc.nix b/lib/deprecated/misc.nix index 0209dba43406..34d1c01ce811 100644 --- a/lib/deprecated/misc.nix +++ b/lib/deprecated/misc.nix @@ -29,6 +29,7 @@ let nameValuePair tail toList + warn ; inherit (lib.attrsets) removeAttrs mapAttrsToList; @@ -212,8 +213,7 @@ let else closePropagationSlow; # calls a function (f attr value ) for each record item. returns a list - # Renamed to lib.attrsets.mapAttrsToList. - mapAttrsFlatten = mapAttrsToList; + mapAttrsFlatten = warn "lib.misc.mapAttrsFlatten is deprecated, please use lib.attrsets.mapAttrsToList instead." mapAttrsToList; # attribute set containing one attribute nvs = name: value: listToAttrs [ (nameValuePair name value) ]; |