diff options
author | Luca Bruno <lucabru@src.gnome.org> | 2015-03-11 16:44:31 +0000 |
---|---|---|
committer | Luca Bruno <lucabru@src.gnome.org> | 2015-03-11 16:47:44 +0000 |
commit | fe6b0b15e6f4a346a204f72310e0914ba7edc941 (patch) | |
tree | b2d593c12f5daa046b94c590255f8b5a52f4e469 /nixos/doc/manual | |
parent | 798e613e16dd6274d301a50d6e9ee6917949050d (diff) | |
download | nixpkgs-fe6b0b15e6f4a346a204f72310e0914ba7edc941.tar nixpkgs-fe6b0b15e6f4a346a204f72310e0914ba7edc941.tar.gz nixpkgs-fe6b0b15e6f4a346a204f72310e0914ba7edc941.tar.bz2 nixpkgs-fe6b0b15e6f4a346a204f72310e0914ba7edc941.tar.lz nixpkgs-fe6b0b15e6f4a346a204f72310e0914ba7edc941.tar.xz nixpkgs-fe6b0b15e6f4a346a204f72310e0914ba7edc941.tar.zst nixpkgs-fe6b0b15e6f4a346a204f72310e0914ba7edc941.zip |
nixos-install: support -j, --cores and --option. Closes #6755
Diffstat (limited to 'nixos/doc/manual')
-rw-r--r-- | nixos/doc/manual/man-nixos-install.xml | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/nixos/doc/manual/man-nixos-install.xml b/nixos/doc/manual/man-nixos-install.xml index 06e7b4a9847..7ad1be1ec10 100644 --- a/nixos/doc/manual/man-nixos-install.xml +++ b/nixos/doc/manual/man-nixos-install.xml @@ -26,6 +26,22 @@ <replaceable>root</replaceable> </arg> <arg> + <group choice='req'> + <arg choice='plain'><option>--max-jobs</option></arg> + <arg choice='plain'><option>-j</option></arg> + </group> + <replaceable>number</replaceable> + </arg> + <arg> + <option>--cores</option> + <replaceable>number</replaceable> + </arg> + <arg> + <option>--option</option> + <replaceable>name</replaceable> + <replaceable>value</replaceable> + </arg> + <arg> <arg choice='plain'><option>--show-trace</option></arg> </arg> <arg> @@ -96,6 +112,37 @@ it.</para> </listitem> </varlistentry> + <varlistentry><term><option>--max-jobs</option></term> + <term><option>-j</option></term> + + <listitem><para>Sets the maximum number of build jobs that Nix will + perform in parallel to the specified number. The default is <literal>1</literal>. + A higher value is useful on SMP systems or to exploit I/O latency.</para></listitem> + + </varlistentry> + + + <varlistentry><term><option>--cores</option></term> + + <listitem><para>Sets the value of the <envar>NIX_BUILD_CORES</envar> + environment variable in the invocation of builders. Builders can + use this variable at their discretion to control the maximum amount + of parallelism. For instance, in Nixpkgs, if the derivation + attribute <varname>enableParallelBuilding</varname> is set to + <literal>true</literal>, the builder passes the + <option>-j<replaceable>N</replaceable></option> flag to GNU Make. + The value <literal>0</literal> means that the builder should use all + available CPU cores in the system.</para></listitem> + + </varlistentry> + + <varlistentry><term><option>--option</option> <replaceable>name</replaceable> <replaceable>value</replaceable></term> + + <listitem><para>Set the Nix configuration option + <replaceable>name</replaceable> to <replaceable>value</replaceable>.</para></listitem> + + </varlistentry> + <varlistentry> <term><option>--show-trace</option></term> <listitem> |