top-level: Use foldl' to make the list of package functions top to bottom
commit3ca3b145ead9ce528b6b8cbf4db8e2a73a26bbe7
authorJohn Ericson <jericson@galois.com>
dateThu 13 Oct 2016, 11:02 (10 years ago)
parente4cd45a
pkgs/top-level/default.nix+8−8
@@ -101,15 +101,15 @@ let
101101 lib.optionalAttrs (bootStdenv == null)
102102 ((config.packageOverrides or (super: {})) super);
103103
104− # The complete chain of package set builders, applied from bottom to top
105− toFix = lib.fold lib.extends (self: {}) [
106− configOverrides
107− stdenvOverrides
108− aliases
109− allPackages
110− stdenvDefault
111− trivialBuilders
104+ # The complete chain of package set builders, applied from top to bottom
105+ toFix = lib.foldl' (lib.flip lib.extends) (self: {}) [
112106 stdenvAdapters
107+ trivialBuilders
108+ stdenvDefault
109+ allPackages
110+ aliases
111+ stdenvOverrides
112+ configOverrides
113113 ];
114114
115115 # Use `overridePackages` to easily override this package set.