summary refs log tree commit diff
path: root/doc
diff options
context:
space:
mode:
authorMatthew Bauer <mjbauer95@gmail.com>2018-11-28 16:00:43 -0600
committerGitHub <noreply@github.com>2018-11-28 16:00:43 -0600
commit54737e329b08cee72dbbedf81431eb425f0ee04f (patch)
treea8e72f2696cb6a9809877a51b3ec134d1358368f /doc
parent5c26dc3d8460a747622bffd89139b27762154015 (diff)
downloadnixpkgs-54737e329b08cee72dbbedf81431eb425f0ee04f.tar
nixpkgs-54737e329b08cee72dbbedf81431eb425f0ee04f.tar.gz
nixpkgs-54737e329b08cee72dbbedf81431eb425f0ee04f.tar.bz2
nixpkgs-54737e329b08cee72dbbedf81431eb425f0ee04f.tar.lz
nixpkgs-54737e329b08cee72dbbedf81431eb425f0ee04f.tar.xz
nixpkgs-54737e329b08cee72dbbedf81431eb425f0ee04f.tar.zst
nixpkgs-54737e329b08cee72dbbedf81431eb425f0ee04f.zip
doc: fix incorrect example
For whatever reason, nix-build ... --argstr a.b "c" doesn't work. It fails quitely so it's best to use an example here that works.
Diffstat (limited to 'doc')
-rw-r--r--doc/cross-compilation.xml2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/cross-compilation.xml b/doc/cross-compilation.xml
index a41240570c6..40cf11304ea 100644
--- a/doc/cross-compilation.xml
+++ b/doc/cross-compilation.xml
@@ -385,7 +385,7 @@ nix-build &lt;nixpkgs&gt; --arg crossSystem '(import &lt;nixpkgs/lib&gt;).system
     Eventually we would like to make these platform examples an unnecessary
     convenience so that
 <programlisting>
-nix-build &lt;nixpkgs&gt; --arg crossSystem.config '&lt;arch&gt;-&lt;os&gt;-&lt;vendor&gt;-&lt;abi&gt;' -A whatever</programlisting>
+nix-build &lt;nixpkgs&gt; --arg crossSystem '{ config = "&lt;arch&gt;-&lt;os&gt;-&lt;vendor&gt;-&lt;abi&gt;"; }' -A whatever</programlisting>
     works in the vast majority of cases. The problem today is dependencies on
     other sorts of configuration which aren't given proper defaults. We rely on
     the examples to crudely to set those configuration parameters in some