Skip to content

Commit

Permalink
top-level: stdenv.cross vanquished
Browse files Browse the repository at this point in the history
  • Loading branch information
hSloan authored and Ericson2314 committed Jun 29, 2017
1 parent 10685e3 commit 9f156f4
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
5 changes: 0 additions & 5 deletions doc/cross-compilation.xml
Expand Up @@ -79,11 +79,6 @@
</listitem>
</varlistentry>
</variablelist>
<note><para>
If you dig around nixpkgs, you may notice there is also <varname>stdenv.cross</varname>.
This field defined as <varname>hostPlatform</varname> when the host and build platforms differ, but otherwise not defined at all.
This field is obsolete and will soon disappear—please do not use it.
</para></note>
<para>
The exact schema these fields follow is a bit ill-defined due to a long and convoluted evolution, but this is slowly being cleaned up.
You can see examples of ones used in practice in <literal>lib.systems.examples</literal>; note how they are not all very consistent.
Expand Down
2 changes: 0 additions & 2 deletions pkgs/top-level/stage.nix
Expand Up @@ -110,8 +110,6 @@ let
in {
stdenv = super.stdenv // {
inherit (buildPlatform) platform;
} // lib.optionalAttrs (hostPlatform != buildPlatform) {
cross = hostPlatform;
};
inherit (buildPlatform) system platform;
};
Expand Down

0 comments on commit 9f156f4

Please sign in to comment.