top-level: Use foldl' to make the list of package functions top to bottom
This commit is contained in:
parent
e4cd45a30c
commit
3ca3b145ea
@ -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.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user