git.iko.soy/typeable/nixpkgs
on master help sign in
top-level: stdenv.cross vanquished
commit9f156f4a8a945dee1beeb49f6c2acb395c0af9c8 authorhsloan <ishaqsloan@gmail.com> dateWed 28 Jun 2017, 17:39 (9 years ago) parent10685e3
2 files changed−7
doc/cross-compilation.xml−5 pkgs/top-level/stage.nix−2
doc/cross-compilation.xml−5
@@ -79,11 +79,6 @@
7979 </listitem>
8080 </varlistentry>
8181 </variablelist>
82− <note><para>
83− If you dig around nixpkgs, you may notice there is also <varname>stdenv.cross</varname>.
84− This field defined as <varname>hostPlatform</varname> when the host and build platforms differ, but otherwise not defined at all.
85− This field is obsolete and will soon disappear—please do not use it.
86− </para></note>
8782 <para>
8883 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.
8984 You can see examples of ones used in practice in <literal>lib.systems.examples</literal>; note how they are not all very consistent.
pkgs/top-level/stage.nix−2
@@ -110,8 +110,6 @@ let
110110 in {
111111 stdenv = super.stdenv // {
112112 inherit (buildPlatform) platform;
113− } // lib.optionalAttrs (hostPlatform != buildPlatform) {
114− cross = hostPlatform;
115113 };
116114 inherit (buildPlatform) system platform;
117115 };