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)
((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.