Unverified Commit 3050865c authored by Philip Taron's avatar Philip Taron Committed by GitHub
Browse files

lib: remove mapAttrsFlatten after a year (#450420)

parents 0bd3fe40 db45f2b7
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -301,6 +301,8 @@
- `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).

- `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.

- The `buildPythonPackage` and `buildPythonApplication` functions now require
+0 −1
Original line number Diff line number Diff line
@@ -552,7 +552,6 @@ let
        modifySumArgs
        innerClosePropagation
        closePropagation
        mapAttrsFlatten
        nvs
        setAttr
        setAttrMerge
+0 −7
Original line number Diff line number Diff line
@@ -29,11 +29,8 @@ let
    nameValuePair
    tail
    toList
    warn
    ;

  inherit (lib.attrsets) removeAttrs mapAttrsToList;

  # returns default if env var is not set
  maybeEnv =
    name: default:
@@ -278,9 +275,6 @@ let

  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
  nvs = name: value: listToAttrs [ (nameValuePair name value) ];
  # adds / replaces an attribute of an attribute set
@@ -470,7 +464,6 @@ in
    innerClosePropagation
    innerModifySumArgs
    lazyGenericClosure
    mapAttrsFlatten
    maybeAttr
    maybeAttrNullable
    maybeEnv