2 , localSystem, crossSystem, config, overlays, crossOverlays ? []
5 assert crossSystem == localSystem;
8 bootStages = import ../. {
9 inherit lib localSystem crossSystem overlays;
10 # Remove config.replaceStdenv to ensure termination.
11 config = builtins.removeAttrs config [ "replaceStdenv" ];
16 # Additional stage, built using custom stdenv
18 inherit config overlays;
20 assert vanillaPackages.hostPlatform == localSystem;
21 assert vanillaPackages.targetPlatform == localSystem;
22 config.replaceStdenv { pkgs = vanillaPackages; };