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