summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/top-level/default.nix16
1 files changed, 8 insertions, 8 deletions
diff --git a/pkgs/top-level/default.nix b/pkgs/top-level/default.nix
index d0dc231650c2..c54b23853c5d 100644
--- a/pkgs/top-level/default.nix
+++ b/pkgs/top-level/default.nix
@@ -101,15 +101,15 @@ let
     lib.optionalAttrs (bootStdenv == null)
       ((config.packageOverrides or (super: {})) super);
 
-  # The complete chain of package set builders, applied from bottom to top
-  toFix = lib.fold lib.extends (self: {}) [
-    configOverrides
-    stdenvOverrides
-    aliases
-    allPackages
-    stdenvDefault
-    trivialBuilders
+  # The complete chain of package set builders, applied from top to bottom
+  toFix = lib.foldl' (lib.flip lib.extends) (self: {}) [
     stdenvAdapters
+    trivialBuilders
+    stdenvDefault
+    allPackages
+    aliases
+    stdenvOverrides
+    configOverrides
   ];
 
   # Use `overridePackages` to easily override this package set.