forked from mirrors/nixpkgs
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)
|
||||
((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.
|
||||
|
|
Loading…
Reference in a new issue