top-level: {build,host,target}Platform are defined in the stdenv instead
See #27069 for a discussion of this
This commit is contained in:
@@ -14,21 +14,18 @@ in bootStages ++ [
|
||||
|
||||
# Build Packages
|
||||
(vanillaPackages: {
|
||||
buildPlatform = localSystem;
|
||||
hostPlatform = localSystem;
|
||||
targetPlatform = crossSystem;
|
||||
inherit config overlays;
|
||||
selfBuild = false;
|
||||
stdenv =
|
||||
assert vanillaPackages.hostPlatform == localSystem;
|
||||
assert vanillaPackages.targetPlatform == localSystem;
|
||||
vanillaPackages.stdenv.override { targetPlatform = crossSystem; };
|
||||
# It's OK to change the built-time dependencies
|
||||
allowCustomOverrides = true;
|
||||
inherit (vanillaPackages) stdenv;
|
||||
})
|
||||
|
||||
# Run Packages
|
||||
(buildPackages: {
|
||||
buildPlatform = localSystem;
|
||||
hostPlatform = crossSystem;
|
||||
targetPlatform = crossSystem;
|
||||
inherit config overlays;
|
||||
selfBuild = false;
|
||||
stdenv = buildPackages.makeStdenvCross {
|
||||
|
||||
Reference in New Issue
Block a user