top-level: stdenv.cross vanquished

This commit is contained in:
hsloan 2017-06-28 17:39:33 -04:00 committed by John Ericson
parent 10685e3956
commit 9f156f4a8a
2 changed files with 0 additions and 7 deletions

View File

@ -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.

View File

@ -110,8 +110,6 @@ let
in {
stdenv = super.stdenv // {
inherit (buildPlatform) platform;
} // lib.optionalAttrs (hostPlatform != buildPlatform) {
cross = hostPlatform;
};
inherit (buildPlatform) system platform;
};