2014-08-27 16:41:09 +00:00
|
|
|
<chapter xmlns="http://docbook.org/ns/docbook" xml:id="sec-common-options">
|
2006-08-21 16:05:11 +00:00
|
|
|
|
2014-08-27 16:41:09 +00:00
|
|
|
<title>Common Options</title>
|
2006-08-21 16:05:11 +00:00
|
|
|
|
2005-03-15 13:55:41 +00:00
|
|
|
|
2005-03-16 16:45:29 +00:00
|
|
|
<para>Most Nix commands accept the following command-line options:</para>
|
|
|
|
|
2012-04-06 19:45:00 +00:00
|
|
|
<variablelist xml:id="opt-common">
|
2005-03-16 16:45:29 +00:00
|
|
|
|
|
|
|
<varlistentry><term><option>--help</option></term>
|
2014-02-19 15:30:19 +00:00
|
|
|
|
2005-03-16 16:45:29 +00:00
|
|
|
<listitem><para>Prints out a summary of the command syntax and
|
|
|
|
exits.</para></listitem>
|
2014-02-19 15:30:19 +00:00
|
|
|
|
2004-02-02 10:51:54 +00:00
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
|
2005-03-16 16:45:29 +00:00
|
|
|
<varlistentry><term><option>--version</option></term>
|
2014-02-19 15:30:19 +00:00
|
|
|
|
2005-03-16 16:45:29 +00:00
|
|
|
<listitem><para>Prints out the Nix version number on standard output
|
|
|
|
and exits.</para></listitem>
|
2004-02-02 10:51:54 +00:00
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
|
2017-07-07 19:14:45 +00:00
|
|
|
<varlistentry><term><option>--verbose</option> / <option>-v</option></term>
|
2005-03-16 16:45:29 +00:00
|
|
|
|
2004-01-08 15:01:37 +00:00
|
|
|
<listitem>
|
2014-02-19 15:30:19 +00:00
|
|
|
|
2005-03-16 16:45:29 +00:00
|
|
|
<para>Increases the level of verbosity of diagnostic messages
|
|
|
|
printed on standard error. For each Nix operation, the information
|
|
|
|
printed on standard output is well-defined; any diagnostic
|
|
|
|
information is printed on standard error, never on standard
|
|
|
|
output.</para>
|
|
|
|
|
|
|
|
<para>This option may be specified repeatedly. Currently, the
|
|
|
|
following verbosity levels exist:</para>
|
|
|
|
|
|
|
|
<variablelist>
|
2014-02-19 15:30:19 +00:00
|
|
|
|
2005-03-16 16:45:29 +00:00
|
|
|
<varlistentry><term>0</term>
|
2005-04-08 13:00:38 +00:00
|
|
|
<listitem><para>“Errors only”: only print messages
|
2005-03-16 16:45:29 +00:00
|
|
|
explaining why the Nix invocation failed.</para></listitem>
|
|
|
|
</varlistentry>
|
2014-02-19 15:30:19 +00:00
|
|
|
|
2005-03-16 16:45:29 +00:00
|
|
|
<varlistentry><term>1</term>
|
2005-04-08 13:00:38 +00:00
|
|
|
<listitem><para>“Informational”: print
|
2005-03-16 16:45:29 +00:00
|
|
|
<emphasis>useful</emphasis> messages about what Nix is doing.
|
|
|
|
This is the default.</para></listitem>
|
|
|
|
</varlistentry>
|
2014-02-19 15:30:19 +00:00
|
|
|
|
2005-03-16 16:45:29 +00:00
|
|
|
<varlistentry><term>2</term>
|
2005-04-08 13:00:38 +00:00
|
|
|
<listitem><para>“Talkative”: print more informational
|
2005-03-16 16:45:29 +00:00
|
|
|
messages.</para></listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry><term>3</term>
|
2005-04-08 13:00:38 +00:00
|
|
|
<listitem><para>“Chatty”: print even more
|
2005-03-16 16:45:29 +00:00
|
|
|
informational messages.</para></listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry><term>4</term>
|
2005-04-08 13:00:38 +00:00
|
|
|
<listitem><para>“Debug”: print debug
|
2005-03-16 16:45:29 +00:00
|
|
|
information.</para></listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry><term>5</term>
|
2005-04-08 13:00:38 +00:00
|
|
|
<listitem><para>“Vomit”: print vast amounts of debug
|
2005-03-16 16:45:29 +00:00
|
|
|
information.</para></listitem>
|
|
|
|
</varlistentry>
|
2014-02-19 15:30:19 +00:00
|
|
|
|
2005-03-16 16:45:29 +00:00
|
|
|
</variablelist>
|
2004-01-08 15:01:37 +00:00
|
|
|
|
2005-03-16 16:45:29 +00:00
|
|
|
</listitem>
|
2014-02-19 15:30:19 +00:00
|
|
|
|
2005-03-16 16:45:29 +00:00
|
|
|
</varlistentry>
|
2004-01-08 15:01:37 +00:00
|
|
|
|
|
|
|
|
2018-04-20 20:34:06 +00:00
|
|
|
<varlistentry><term><option>--quiet</option></term>
|
|
|
|
|
|
|
|
<listitem>
|
|
|
|
|
|
|
|
<para>Decreases the level of verbosity of diagnostic messages
|
|
|
|
printed on standard error. This is the inverse option to
|
|
|
|
<option>-v</option> / <option>--verbose</option>.
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<para>This option may be specified repeatedly. See the previous
|
|
|
|
verbosity levels list.</para>
|
|
|
|
|
|
|
|
</listitem>
|
|
|
|
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
|
2019-09-26 16:55:51 +00:00
|
|
|
<varlistentry xml:id="opt-log-format"><term><option>--log-format</option> <replaceable>format</replaceable></term>
|
|
|
|
|
|
|
|
<listitem>
|
|
|
|
|
|
|
|
<para>This option can be used to change the output of the log format, with
|
|
|
|
<replaceable>format</replaceable> being one of:</para>
|
|
|
|
|
|
|
|
<variablelist>
|
|
|
|
|
|
|
|
<varlistentry><term>raw</term>
|
|
|
|
<listitem><para>This is the raw format, as outputted by nix-build.</para></listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry><term>internal-json</term>
|
|
|
|
<listitem><para>Outputs the logs in a structured manner. NOTE: the json schema is not guarantees to be stable between releases.</para></listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry><term>bar</term>
|
|
|
|
<listitem><para>Only display a progress bar during the builds.</para></listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry><term>bar-with-logs</term>
|
|
|
|
<listitem><para>Display the raw logs, with the progress bar at the bottom.</para></listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
</variablelist>
|
|
|
|
|
|
|
|
</listitem>
|
|
|
|
|
|
|
|
</varlistentry>
|
|
|
|
|
2017-07-07 19:14:45 +00:00
|
|
|
<varlistentry><term><option>--no-build-output</option> / <option>-Q</option></term>
|
2005-03-16 16:45:29 +00:00
|
|
|
|
|
|
|
<listitem><para>By default, output written by builders to standard
|
|
|
|
output and standard error is echoed to the Nix command's standard
|
|
|
|
error. This option suppresses this behaviour. Note that the
|
|
|
|
builder's standard output and error are always written to a log file
|
|
|
|
in
|
|
|
|
<filename><replaceable>prefix</replaceable>/nix/var/log/nix</filename>.</para></listitem>
|
2014-02-19 15:30:19 +00:00
|
|
|
|
2004-01-08 15:01:37 +00:00
|
|
|
</varlistentry>
|
2004-01-13 16:35:43 +00:00
|
|
|
|
2004-02-02 10:51:54 +00:00
|
|
|
|
2017-07-07 19:11:39 +00:00
|
|
|
<varlistentry xml:id="opt-max-jobs"><term><option>--max-jobs</option> / <option>-j</option>
|
|
|
|
<replaceable>number</replaceable></term>
|
2005-03-16 16:45:29 +00:00
|
|
|
|
2019-03-31 01:47:43 +00:00
|
|
|
<listitem>
|
|
|
|
|
|
|
|
<para>Sets the maximum number of build jobs that Nix will
|
2017-02-28 11:54:50 +00:00
|
|
|
perform in parallel to the specified number. Specify
|
|
|
|
<literal>auto</literal> to use the number of CPUs in the system.
|
|
|
|
The default is specified by the <link
|
2017-08-31 12:28:25 +00:00
|
|
|
linkend='conf-max-jobs'><literal>max-jobs</literal></link>
|
2006-10-05 08:21:52 +00:00
|
|
|
configuration setting, which itself defaults to
|
|
|
|
<literal>1</literal>. A higher value is useful on SMP systems or to
|
2019-03-31 01:47:43 +00:00
|
|
|
exploit I/O latency.</para>
|
|
|
|
|
|
|
|
<para> Setting it to <literal>0</literal> disallows building on the local
|
|
|
|
machine, which is useful when you want builds to happen only on remote
|
|
|
|
builders.</para>
|
|
|
|
|
|
|
|
</listitem>
|
2014-02-19 15:30:19 +00:00
|
|
|
|
2010-08-17 07:22:05 +00:00
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
|
|
|
|
<varlistentry xml:id="opt-cores"><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.
|
|
|
|
It defaults to the value of the <link
|
2017-08-31 12:28:25 +00:00
|
|
|
linkend='conf-cores'><literal>cores</literal></link>
|
2010-08-17 07:22:05 +00:00
|
|
|
configuration setting, if set, or <literal>1</literal> otherwise.
|
|
|
|
The value <literal>0</literal> means that the builder should use all
|
|
|
|
available CPU cores in the system.</para></listitem>
|
2014-02-19 15:30:19 +00:00
|
|
|
|
2004-01-13 16:35:43 +00:00
|
|
|
</varlistentry>
|
2004-02-02 10:51:54 +00:00
|
|
|
|
|
|
|
|
2007-10-29 22:16:36 +00:00
|
|
|
<varlistentry xml:id="opt-max-silent-time"><term><option>--max-silent-time</option></term>
|
|
|
|
|
|
|
|
<listitem><para>Sets the maximum number of seconds that a builder
|
|
|
|
can go without producing any data on standard output or standard
|
|
|
|
error. The default is specified by the <link
|
2017-08-31 12:28:25 +00:00
|
|
|
linkend='conf-max-silent-time'><literal>max-silent-time</literal></link>
|
2007-10-29 22:16:36 +00:00
|
|
|
configuration setting. <literal>0</literal> means no
|
|
|
|
time-out.</para></listitem>
|
|
|
|
|
|
|
|
</varlistentry>
|
|
|
|
|
2011-06-30 15:19:13 +00:00
|
|
|
<varlistentry xml:id="opt-timeout"><term><option>--timeout</option></term>
|
|
|
|
|
|
|
|
<listitem><para>Sets the maximum number of seconds that a builder
|
|
|
|
can run. The default is specified by the <link
|
2017-08-31 12:28:25 +00:00
|
|
|
linkend='conf-timeout'><literal>timeout</literal></link>
|
2011-06-30 15:19:13 +00:00
|
|
|
configuration setting. <literal>0</literal> means no
|
|
|
|
timeout.</para></listitem>
|
|
|
|
|
|
|
|
</varlistentry>
|
|
|
|
|
2017-07-07 19:14:45 +00:00
|
|
|
<varlistentry><term><option>--keep-going</option> / <option>-k</option></term>
|
2005-03-16 16:45:29 +00:00
|
|
|
|
|
|
|
<listitem><para>Keep going in case of failed builds, to the
|
|
|
|
greatest extent possible. That is, if building an input of some
|
|
|
|
derivation fails, Nix will still build the other inputs, but not the
|
|
|
|
derivation itself. Without this option, Nix stops if any build
|
|
|
|
fails (except for builds of substitutes), possibly killing builds in
|
|
|
|
progress (in case of parallel or distributed builds).</para></listitem>
|
2014-02-19 15:30:19 +00:00
|
|
|
|
2004-06-25 15:36:09 +00:00
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
|
2017-07-07 19:14:45 +00:00
|
|
|
<varlistentry><term><option>--keep-failed</option> / <option>-K</option></term>
|
2005-03-16 16:45:29 +00:00
|
|
|
|
|
|
|
<listitem><para>Specifies that in case of a build failure, the
|
|
|
|
temporary directory (usually in <filename>/tmp</filename>) in which
|
|
|
|
the build takes place should not be deleted. The path of the build
|
|
|
|
directory is printed as an informational message.
|
2004-06-25 15:36:09 +00:00
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
|
2005-03-16 16:45:29 +00:00
|
|
|
<varlistentry><term><option>--fallback</option></term>
|
|
|
|
|
2004-02-02 10:51:54 +00:00
|
|
|
<listitem>
|
2005-03-16 16:45:29 +00:00
|
|
|
|
2005-04-08 13:00:38 +00:00
|
|
|
<para>Whenever Nix attempts to build a derivation for which
|
|
|
|
substitutes are known for each output path, but realising the output
|
|
|
|
paths through the substitutes fails, fall back on building the
|
|
|
|
derivation.</para>
|
2005-03-16 16:45:29 +00:00
|
|
|
|
|
|
|
<para>The most common scenario in which this is useful is when we
|
|
|
|
have registered substitutes in order to perform binary distribution
|
|
|
|
from, say, a network repository. If the repository is down, the
|
|
|
|
realisation of the derivation will fail. When this option is
|
2005-04-08 13:00:38 +00:00
|
|
|
specified, Nix will build the derivation instead. Thus,
|
2013-06-29 13:18:05 +00:00
|
|
|
installation from binaries falls back on installation from source.
|
2005-04-08 13:00:38 +00:00
|
|
|
This option is not the default since it is generally not desirable
|
|
|
|
for a transient failure in obtaining the substitutes to lead to a
|
|
|
|
full build from source (with the related consumption of
|
|
|
|
resources).</para>
|
2005-03-16 16:45:29 +00:00
|
|
|
|
2004-02-02 10:51:54 +00:00
|
|
|
</listitem>
|
2014-02-19 15:30:19 +00:00
|
|
|
|
2004-02-02 10:51:54 +00:00
|
|
|
</varlistentry>
|
|
|
|
|
2016-12-28 14:19:59 +00:00
|
|
|
<varlistentry><term><option>--no-build-hook</option></term>
|
|
|
|
|
|
|
|
<listitem>
|
|
|
|
|
|
|
|
<para>Disables the build hook mechanism. This allows to ignore remote
|
|
|
|
builders if they are setup on the machine.</para>
|
|
|
|
|
|
|
|
<para>It's useful in cases where the bandwidth between the client and the
|
|
|
|
remote builder is too low. In that case it can take more time to upload the
|
|
|
|
sources to the remote builder and fetch back the result than to do the
|
|
|
|
computation locally.</para>
|
|
|
|
|
|
|
|
</listitem>
|
|
|
|
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
|
2004-06-28 10:42:57 +00:00
|
|
|
|
2005-03-16 16:45:29 +00:00
|
|
|
<varlistentry><term><option>--readonly-mode</option></term>
|
2004-06-28 10:42:57 +00:00
|
|
|
|
2005-03-16 16:45:29 +00:00
|
|
|
<listitem><para>When this option is used, no attempt is made to open
|
|
|
|
the Nix database. Most Nix operations do need database access, so
|
|
|
|
those operations will fail.</para></listitem>
|
2014-02-19 15:30:19 +00:00
|
|
|
|
2004-06-28 10:42:57 +00:00
|
|
|
</varlistentry>
|
|
|
|
|
2004-11-12 23:22:08 +00:00
|
|
|
|
2006-10-05 09:08:52 +00:00
|
|
|
<varlistentry><term><option>--arg</option> <replaceable>name</replaceable> <replaceable>value</replaceable></term>
|
|
|
|
|
|
|
|
<listitem><para>This option is accepted by
|
2019-11-01 17:25:15 +00:00
|
|
|
<command>nix-env</command>, <command>nix-instantiate</command>,
|
2019-11-05 10:21:32 +00:00
|
|
|
<command>nix-shell</command> and <command>nix-build</command>.
|
2019-11-01 17:25:15 +00:00
|
|
|
When evaluating Nix expressions, the expression evaluator will
|
|
|
|
automatically try to call functions that
|
2006-10-05 09:08:52 +00:00
|
|
|
it encounters. It can automatically call functions for which every
|
2006-10-05 20:07:41 +00:00
|
|
|
argument has a <link linkend='ss-functions'>default value</link>
|
2011-12-30 17:39:03 +00:00
|
|
|
(e.g., <literal>{ <replaceable>argName</replaceable> ?
|
|
|
|
<replaceable>defaultValue</replaceable> }:
|
2006-10-05 09:08:52 +00:00
|
|
|
<replaceable>...</replaceable></literal>). With
|
|
|
|
<option>--arg</option>, you can also call functions that have
|
|
|
|
arguments without a default value (or override a default value).
|
|
|
|
That is, if the evaluator encounters a function with an argument
|
|
|
|
named <replaceable>name</replaceable>, it will call it with value
|
|
|
|
<replaceable>value</replaceable>.</para>
|
|
|
|
|
2017-01-03 15:41:34 +00:00
|
|
|
<para>For instance, the top-level <literal>default.nix</literal> in
|
|
|
|
Nixpkgs is actually a function:
|
2006-10-05 09:08:52 +00:00
|
|
|
|
|
|
|
<programlisting>
|
|
|
|
{ # The system (e.g., `i686-linux') for which to build the packages.
|
2009-04-14 13:03:27 +00:00
|
|
|
system ? builtins.currentSystem
|
2006-10-05 09:08:52 +00:00
|
|
|
<replaceable>...</replaceable>
|
|
|
|
}: <replaceable>...</replaceable></programlisting>
|
|
|
|
|
|
|
|
So if you call this Nix expression (e.g., when you do
|
|
|
|
<literal>nix-env -i <replaceable>pkgname</replaceable></literal>),
|
|
|
|
the function will be called automatically using the value <link
|
2009-04-14 13:03:27 +00:00
|
|
|
linkend='builtin-currentSystem'><literal>builtins.currentSystem</literal></link>
|
2006-10-05 09:08:52 +00:00
|
|
|
for the <literal>system</literal> argument. You can override this
|
|
|
|
using <option>--arg</option>, e.g., <literal>nix-env -i
|
|
|
|
<replaceable>pkgname</replaceable> --arg system
|
|
|
|
\"i686-freebsd\"</literal>. (Note that since the argument is a Nix
|
|
|
|
string literal, you have to escape the quotes.)</para></listitem>
|
|
|
|
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
|
2007-12-31 02:52:17 +00:00
|
|
|
<varlistentry><term><option>--argstr</option> <replaceable>name</replaceable> <replaceable>value</replaceable></term>
|
|
|
|
|
|
|
|
<listitem><para>This option is like <option>--arg</option>, only the
|
|
|
|
value is not a Nix expression but a string. So instead of
|
|
|
|
<literal>--arg system \"i686-linux\"</literal> (the outer quotes are
|
|
|
|
to keep the shell happy) you can say <literal>--argstr system
|
|
|
|
i686-linux</literal>.</para></listitem>
|
|
|
|
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
|
2006-10-05 20:07:41 +00:00
|
|
|
<varlistentry xml:id="opt-attr"><term><option>--attr</option> / <option>-A</option>
|
|
|
|
<replaceable>attrPath</replaceable></term>
|
|
|
|
|
2014-02-19 15:30:19 +00:00
|
|
|
<listitem><para>Select an attribute from the top-level Nix
|
|
|
|
expression being evaluated. (<command>nix-env</command>,
|
|
|
|
<command>nix-instantiate</command>, <command>nix-build</command> and
|
|
|
|
<command>nix-shell</command> only.) The <emphasis>attribute
|
2006-10-05 20:07:41 +00:00
|
|
|
path</emphasis> <replaceable>attrPath</replaceable> is a sequence of
|
|
|
|
attribute names separated by dots. For instance, given a top-level
|
|
|
|
Nix expression <replaceable>e</replaceable>, the attribute path
|
|
|
|
<literal>xorg.xorgserver</literal> would cause the expression
|
|
|
|
<literal><replaceable>e</replaceable>.xorg.xorgserver</literal> to
|
|
|
|
be used. See <link
|
|
|
|
linkend='refsec-nix-env-install-examples'><command>nix-env
|
|
|
|
--install</command></link> for some concrete examples.</para>
|
|
|
|
|
|
|
|
<para>In addition to attribute names, you can also specify array
|
|
|
|
indices. For instance, the attribute path
|
|
|
|
<literal>foo.3.bar</literal> selects the <literal>bar</literal>
|
|
|
|
attribute of the fourth element of the array in the
|
|
|
|
<literal>foo</literal> attribute of the top-level
|
|
|
|
expression.</para></listitem>
|
|
|
|
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
|
2014-02-19 15:30:19 +00:00
|
|
|
<varlistentry><term><option>--expr</option> / <option>-E</option></term>
|
|
|
|
|
|
|
|
<listitem><para>Interpret the command line arguments as a list of
|
|
|
|
Nix expressions to be parsed and evaluated, rather than as a list
|
|
|
|
of file names of Nix expressions.
|
|
|
|
(<command>nix-instantiate</command>, <command>nix-build</command>
|
2019-11-10 16:29:13 +00:00
|
|
|
and <command>nix-shell</command> only.)</para>
|
|
|
|
|
|
|
|
<para>For <command>nix-shell</command>, this option is commonly used
|
|
|
|
to give you a shell in which you can build the packages returned
|
|
|
|
by the expression. If you want to get a shell which contain the
|
|
|
|
<emphasis>built</emphasis> packages ready for use, give your
|
|
|
|
expression to the <command>nix-shell -p</command> convenience flag
|
|
|
|
instead.</para></listitem>
|
2014-02-19 15:30:19 +00:00
|
|
|
|
|
|
|
</varlistentry>
|
|
|
|
|
2009-06-30 13:28:29 +00:00
|
|
|
|
2014-09-16 09:20:09 +00:00
|
|
|
<varlistentry xml:id="opt-I"><term><option>-I</option> <replaceable>path</replaceable></term>
|
2014-02-19 15:30:19 +00:00
|
|
|
|
2013-03-08 00:24:59 +00:00
|
|
|
<listitem><para>Add a path to the Nix expression search path. This
|
2014-09-16 09:20:09 +00:00
|
|
|
option may be given multiple times. See the <envar
|
|
|
|
linkend="env-NIX_PATH">NIX_PATH</envar> environment variable for
|
|
|
|
information on the semantics of the Nix search path. Paths added
|
|
|
|
through <option>-I</option> take precedence over
|
|
|
|
<envar>NIX_PATH</envar>.</para></listitem>
|
2014-02-19 15:30:19 +00:00
|
|
|
|
2012-05-09 23:06:13 +00:00
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
|
2012-07-29 18:37:40 +00:00
|
|
|
<varlistentry><term><option>--option</option> <replaceable>name</replaceable> <replaceable>value</replaceable></term>
|
2014-02-19 15:30:19 +00:00
|
|
|
|
2012-07-29 18:37:40 +00:00
|
|
|
<listitem><para>Set the Nix configuration option
|
|
|
|
<replaceable>name</replaceable> to <replaceable>value</replaceable>.
|
|
|
|
This overrides settings in the Nix configuration file (see
|
|
|
|
<citerefentry><refentrytitle>nix.conf</refentrytitle><manvolnum>5</manvolnum></citerefentry>).</para></listitem>
|
2014-02-19 15:30:19 +00:00
|
|
|
|
2012-07-29 18:37:40 +00:00
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
|
2012-10-03 19:53:25 +00:00
|
|
|
<varlistentry><term><option>--repair</option></term>
|
|
|
|
|
|
|
|
<listitem><para>Fix corrupted or missing store paths by
|
|
|
|
redownloading or rebuilding them. Note that this is slow because it
|
|
|
|
requires computing a cryptographic hash of the contents of every
|
|
|
|
path in the closure of the build. Also note the warning under
|
|
|
|
<command>nix-store --repair-path</command>.</para></listitem>
|
|
|
|
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
|
2005-03-16 16:45:29 +00:00
|
|
|
</variablelist>
|
|
|
|
|
|
|
|
|
2014-08-27 16:41:09 +00:00
|
|
|
</chapter>
|