2016-12-16 05:22:02 -08:00
|
|
|
{ lib
|
2019-01-07 18:39:15 -08:00
|
|
|
, localSystem, crossSystem, config, overlays, crossOverlays ? []
|
2016-11-27 12:37:45 -08:00
|
|
|
}:
|
2016-04-27 09:09:27 -07:00
|
|
|
|
2018-12-04 19:06:46 -08:00
|
|
|
assert crossSystem == localSystem;
|
2016-11-30 15:51:13 -08:00
|
|
|
|
2016-12-16 05:22:02 -08:00
|
|
|
let
|
|
|
|
bootStages = import ../. {
|
2016-12-24 10:55:11 -08:00
|
|
|
inherit lib localSystem crossSystem overlays;
|
2016-04-27 09:09:27 -07:00
|
|
|
# Remove config.replaceStdenv to ensure termination.
|
|
|
|
config = builtins.removeAttrs config [ "replaceStdenv" ];
|
2016-11-27 12:37:45 -08:00
|
|
|
};
|
2016-04-27 09:09:27 -07:00
|
|
|
|
2016-12-16 05:22:02 -08:00
|
|
|
in bootStages ++ [
|
|
|
|
|
|
|
|
# Additional stage, built using custom stdenv
|
|
|
|
(vanillaPackages: {
|
2016-12-24 10:55:11 -08:00
|
|
|
inherit config overlays;
|
2017-07-05 18:47:48 -07:00
|
|
|
stdenv =
|
|
|
|
assert vanillaPackages.hostPlatform == localSystem;
|
|
|
|
assert vanillaPackages.targetPlatform == localSystem;
|
|
|
|
config.replaceStdenv { pkgs = vanillaPackages; };
|
2016-12-16 05:22:02 -08:00
|
|
|
})
|
2016-04-27 09:09:27 -07:00
|
|
|
|
2016-12-16 05:22:02 -08:00
|
|
|
]
|