doc: chap cross: Make example command stick out more
It should be in a <programlisting>, not <command>, tag.
This commit is contained in:
parent
931a0b8be8
commit
e316ba1fc4
@ -253,7 +253,8 @@
|
|||||||
or also with <varname>crossSystem</varname>, in which case packages run on the latter, but all building happens on the former.
|
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.
|
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.
|
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>.
|
You can use them programmatically, or on the command line: <programlisting>
|
||||||
|
nix-build <nixpkgs> --arg crossSystem '(import <nixpkgs/lib>).systems.examples.fooBarBaz' -A whatever</programlisting>
|
||||||
</para>
|
</para>
|
||||||
<para>
|
<para>
|
||||||
While one is free to pass both parameters in full, there's a lot of logic to fill in missing fields.
|
While one is free to pass both parameters in full, there's a lot of logic to fill in missing fields.
|
||||||
|
Loading…
Reference in New Issue
Block a user