top-level: Lay the groundwork for {build,host,target}Platform
The long term goal is a big replace:
{ inherit system platform; } => buildPlatform
crossSystem => hostPlatform
stdenv.cross => targetPlatform
And additionally making sure each is defined even when not cross compiling.
This commit refactors the bootstrapping code along that vision, but leaves
the old identifiers with their null semantics in place so packages can be
modernized incrementally.
This commit is contained in:
@@ -1,8 +1,9 @@
|
||||
{ lib
|
||||
, system, platform, crossSystem, config, overlays
|
||||
, localSystem, crossSystem, config, overlays
|
||||
}:
|
||||
|
||||
assert crossSystem == null;
|
||||
let inherit (localSystem) system; in
|
||||
|
||||
|
||||
[
|
||||
@@ -58,7 +59,10 @@ assert crossSystem == null;
|
||||
})
|
||||
|
||||
(prevStage: {
|
||||
inherit system crossSystem platform config overlays;
|
||||
buildPlatform = localSystem;
|
||||
hostPlatform = localSystem;
|
||||
targetPlatform = localSystem;
|
||||
inherit config overlays;
|
||||
stdenv = import ../generic {
|
||||
name = "stdenv-freebsd-boot-3";
|
||||
inherit system config;
|
||||
|
||||
Reference in New Issue
Block a user