lib: remove mapAttrsFlatten after a year

It was deprecated in b9c51260d0.
This commit is contained in:
Philip Taron
2025-10-09 12:58:59 -07:00
parent e89bffa28f
commit db45f2b770
3 changed files with 2 additions and 8 deletions

View File

@@ -301,6 +301,8 @@
- `reaction` has been updated to version 2, which includes some breaking changes. - `reaction` has been updated to version 2, which includes some breaking changes.
For more information, [check the release article](https://blog.ppom.me/en-reaction-v2). For more information, [check the release article](https://blog.ppom.me/en-reaction-v2).
- `lib.mapAttrsFlatten` has been removed, following its deprecation in NixOS 24.11. Use `lib.attrsets.mapAttrsToList` instead.
- `lib.options.mkPackageOptionMD` has been removed, following its deprecation in NixOS 24.11. Use `lib.options.mkPackageOption` instead. - `lib.options.mkPackageOptionMD` has been removed, following its deprecation in NixOS 24.11. Use `lib.options.mkPackageOption` instead.
- The `buildPythonPackage` and `buildPythonApplication` functions now require - The `buildPythonPackage` and `buildPythonApplication` functions now require

View File

@@ -552,7 +552,6 @@ let
modifySumArgs modifySumArgs
innerClosePropagation innerClosePropagation
closePropagation closePropagation
mapAttrsFlatten
nvs nvs
setAttr setAttr
setAttrMerge setAttrMerge

View File

@@ -29,11 +29,8 @@ let
nameValuePair nameValuePair
tail tail
toList toList
warn
; ;
inherit (lib.attrsets) removeAttrs mapAttrsToList;
# returns default if env var is not set # returns default if env var is not set
maybeEnv = maybeEnv =
name: default: name: default:
@@ -278,9 +275,6 @@ let
closePropagation = if builtins ? genericClosure then closePropagationFast else closePropagationSlow; closePropagation = if builtins ? genericClosure then closePropagationFast else closePropagationSlow;
# calls a function (f attr value ) for each record item. returns a list
mapAttrsFlatten = warn "lib.misc.mapAttrsFlatten is deprecated, please use lib.attrsets.mapAttrsToList instead." mapAttrsToList;
# attribute set containing one attribute # attribute set containing one attribute
nvs = name: value: listToAttrs [ (nameValuePair name value) ]; nvs = name: value: listToAttrs [ (nameValuePair name value) ];
# adds / replaces an attribute of an attribute set # adds / replaces an attribute of an attribute set
@@ -470,7 +464,6 @@ in
innerClosePropagation innerClosePropagation
innerModifySumArgs innerModifySumArgs
lazyGenericClosure lazyGenericClosure
mapAttrsFlatten
maybeAttr maybeAttr
maybeAttrNullable maybeAttrNullable
maybeEnv maybeEnv