top-level: stdenv.cross vanquished
This commit is contained in:
parent
10685e3956
commit
9f156f4a8a
@ -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.
|
||||
|
@ -110,8 +110,6 @@ let
|
||||
in {
|
||||
stdenv = super.stdenv // {
|
||||
inherit (buildPlatform) platform;
|
||||
} // lib.optionalAttrs (hostPlatform != buildPlatform) {
|
||||
cross = hostPlatform;
|
||||
};
|
||||
inherit (buildPlatform) system platform;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user