summary refs log tree commit diff
path: root/pkgs/top-level/default.nix
diff options
context:
space:
mode:
authorJohn Ericson <Ericson2314@Yahoo.com>2016-12-24 10:55:11 -0800
committerJohn Ericson <Ericson2314@Yahoo.com>2017-01-24 11:37:56 -0500
commit92edcb7ebbf5b4b324288ec62bebbc58a3f96ef6 (patch)
tree810ca0e0f429364adcf030867095fffe655cb3ab /pkgs/top-level/default.nix
parent5b88f09ec4d6b3ac953cd9d252ebfd6663205c57 (diff)
downloadnixpkgs-92edcb7ebbf5b4b324288ec62bebbc58a3f96ef6.tar
nixpkgs-92edcb7ebbf5b4b324288ec62bebbc58a3f96ef6.tar.gz
nixpkgs-92edcb7ebbf5b4b324288ec62bebbc58a3f96ef6.tar.bz2
nixpkgs-92edcb7ebbf5b4b324288ec62bebbc58a3f96ef6.tar.lz
nixpkgs-92edcb7ebbf5b4b324288ec62bebbc58a3f96ef6.tar.xz
nixpkgs-92edcb7ebbf5b4b324288ec62bebbc58a3f96ef6.tar.zst
nixpkgs-92edcb7ebbf5b4b324288ec62bebbc58a3f96ef6.zip
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.
Diffstat (limited to 'pkgs/top-level/default.nix')
-rw-r--r--pkgs/top-level/default.nix3
1 files changed, 2 insertions, 1 deletions
diff --git a/pkgs/top-level/default.nix b/pkgs/top-level/default.nix
index a146dad63bc..b7a4273acff 100644
--- a/pkgs/top-level/default.nix
+++ b/pkgs/top-level/default.nix
@@ -83,7 +83,8 @@ in let
   boot = import ../stdenv/booter.nix { inherit lib allPackages; };
 
   stages = stdenvStages {
-    inherit lib system platform crossSystem config overlays;
+    localSystem = { inherit system platform; };
+    inherit lib crossSystem config overlays;
   };
 
   pkgs = boot stages;