top-level: Use foldl' to make the list of package functions top to bottom

This commit is contained in:
John Ericson 2016-10-13 11:02:56 -04:00
parent e4cd45a30c
commit 3ca3b145ea

View File

@ -101,15 +101,15 @@ let
lib.optionalAttrs (bootStdenv == null) lib.optionalAttrs (bootStdenv == null)
((config.packageOverrides or (super: {})) super); ((config.packageOverrides or (super: {})) super);
# The complete chain of package set builders, applied from bottom to top # The complete chain of package set builders, applied from top to bottom
toFix = lib.fold lib.extends (self: {}) [ toFix = lib.foldl' (lib.flip lib.extends) (self: {}) [
configOverrides
stdenvOverrides
aliases
allPackages
stdenvDefault
trivialBuilders
stdenvAdapters stdenvAdapters
trivialBuilders
stdenvDefault
allPackages
aliases
stdenvOverrides
configOverrides
]; ];
# Use `overridePackages` to easily override this package set. # Use `overridePackages` to easily override this package set.