mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-15 22:36:23 +01:00
a302d7360f
See #27069 for a discussion of this
25 lines
606 B
Nix
25 lines
606 B
Nix
{ lib
|
|
, localSystem, crossSystem, config, overlays
|
|
}:
|
|
|
|
assert crossSystem == null;
|
|
|
|
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; };
|
|
})
|
|
|
|
]
|