diff options
author | John Ericson <John.Ericson@Obsidian.Systems> | 2018-01-26 12:30:05 -0500 |
---|---|---|
committer | John Ericson <John.Ericson@Obsidian.Systems> | 2018-01-26 12:38:34 -0500 |
commit | 94a2af91eb8cb9665de95b52bf9f3d61ca564e92 (patch) | |
tree | 2ec710d07fe729d939b44650744dfeab3bf2fe19 /doc/cross-compilation.xml | |
parent | e316ba1fc48bfb4d2b8013a2bcdc54d63e8e6e0e (diff) | |
download | nixlib-94a2af91eb8cb9665de95b52bf9f3d61ca564e92.tar nixlib-94a2af91eb8cb9665de95b52bf9f3d61ca564e92.tar.gz nixlib-94a2af91eb8cb9665de95b52bf9f3d61ca564e92.tar.bz2 nixlib-94a2af91eb8cb9665de95b52bf9f3d61ca564e92.tar.lz nixlib-94a2af91eb8cb9665de95b52bf9f3d61ca564e92.tar.xz nixlib-94a2af91eb8cb9665de95b52bf9f3d61ca564e92.tar.zst nixlib-94a2af91eb8cb9665de95b52bf9f3d61ca564e92.zip |
doc: Cross chapter: Add note on why use example platforms
Diffstat (limited to 'doc/cross-compilation.xml')
-rw-r--r-- | doc/cross-compilation.xml | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/doc/cross-compilation.xml b/doc/cross-compilation.xml index 3e67944e58f7..10e4706b0590 100644 --- a/doc/cross-compilation.xml +++ b/doc/cross-compilation.xml @@ -256,6 +256,16 @@ 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> + <note> + <para> + Eventually we would like to make these platform examples an unnecessary convenience so that <programlisting> +nix-build <nixpkgs> --arg crossSystem.config '<arch>-<os>-<vendor>-<abi>' -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 vaguely sane manner on the users behalf. + Issue <link xlink:href="https://github.com/NixOS/nixpkgs/issues/34274">#34274</link> tracks this inconvenience along with its root cause in crufty configuration options. + </para> + </note> <para> While one is free to pass both parameters in full, there's a lot of logic to fill in missing fields. As discussed in the previous section, only one of <varname>system</varname>, <varname>config</varname>, and <varname>parsed</varname> is needed to infer the other two. |