8ac5e011d6
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
25 lines
633 B
Nix
25 lines
633 B
Nix
{ lib
|
|
, localSystem, crossSystem, config, overlays, crossOverlays ? []
|
|
}:
|
|
|
|
assert crossSystem == localSystem;
|
|
|
|
let
|
|
bootStages = import ../. {
|
|
inherit lib localSystem crossSystem overlays;
|
|
# Remove config.replaceStdenv to ensure termination.
|
|
config = builtins.removeAttrs config [ "replaceStdenv" ];
|
|
};
|
|
|
|
in bootStages ++ [
|
|
|
|
# Additional stage, built using custom stdenv
|
|
(vanillaPackages: {
|
|
inherit config overlays;
|
|
stdenv =
|
|
assert vanillaPackages.hostPlatform == localSystem;
|
|
assert vanillaPackages.targetPlatform == localSystem;
|
|
config.replaceStdenv { pkgs = vanillaPackages; };
|
|
})
|
|
|
|
]
|