+2
-1
doc/cross-compilation.xml
+2
-1
doc/cross-compilation.xml
···or also with <varname>crossSystem</varname>, in which case packages run on the latter, but all building happens on the former.Both parameters take the same schema as the 3 (build, host, and target) platforms defined in the previous section.As mentioned above, <literal>lib.systems.examples</literal> has some platforms which are used as arguments for these parameters in practice.-You can use them programmatically, or on the command line like <command>nix-build <nixpkgs> --arg crossSystem '(import <nixpkgs/lib>).systems.examples.fooBarBaz'</command>.+nix-build <nixpkgs> --arg crossSystem '(import <nixpkgs/lib>).systems.examples.fooBarBaz' -A whatever</programlisting>