From 05616bc0f175ccb66346138d20434955c7e97f2e Mon Sep 17 00:00:00 2001 From: Aliaksandr Date: Thu, 30 Oct 2025 16:57:08 +0200 Subject: [PATCH] treewide: lib.fold -> lib.foldr --- nixos/modules/services/matrix/mjolnir.nix | 2 +- pkgs/applications/video/mpv/scripts.nix | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/nixos/modules/services/matrix/mjolnir.nix b/nixos/modules/services/matrix/mjolnir.nix index e20029e2d961..ab6b580b5ef9 100644 --- a/nixos/modules/services/matrix/mjolnir.nix +++ b/nixos/modules/services/matrix/mjolnir.nix @@ -30,7 +30,7 @@ let moduleConfigFile = pkgs.writeText "module-config.yaml" ( lib.generators.toYAML { } ( lib.filterAttrs (_: v: v != null) ( - lib.fold lib.recursiveUpdate { } [ + lib.foldr lib.recursiveUpdate { } [ yamlConfig cfg.settings ] diff --git a/pkgs/applications/video/mpv/scripts.nix b/pkgs/applications/video/mpv/scripts.nix index ab1e5f334d5b..b90501c0e7cf 100644 --- a/pkgs/applications/video/mpv/scripts.nix +++ b/pkgs/applications/video/mpv/scripts.nix @@ -6,7 +6,7 @@ }: let - unionOfDisjoints = lib.fold lib.attrsets.unionOfDisjoint { }; + unionOfDisjoints = lib.foldr lib.attrsets.unionOfDisjoint { }; addTests = attrPath: drv: