diff options
author | Eelco Dolstra <e.dolstra@tudelft.nl> | 2005-03-17T10·30+0000 |
---|---|---|
committer | Eelco Dolstra <e.dolstra@tudelft.nl> | 2005-03-17T10·30+0000 |
commit | 67eff20906899e315a6fbbaab02f18326ac5afb8 (patch) | |
tree | 61b5320a5707ca77d74a0ffc8194f3dbc071c31d /doc/manual | |
parent | ad3121a52dacba417387df543df573816cd15b55 (diff) |
* Manual updates.
Diffstat (limited to 'doc/manual')
-rw-r--r-- | doc/manual/env-common.xml | 11 | ||||
-rw-r--r-- | doc/manual/nix-store.xml | 221 | ||||
-rw-r--r-- | doc/manual/opt-common-syn.xml | 1 | ||||
-rw-r--r-- | doc/manual/package-management.xml | 2 | ||||
-rw-r--r-- | doc/manual/style.css | 2 |
5 files changed, 133 insertions, 104 deletions
diff --git a/doc/manual/env-common.xml b/doc/manual/env-common.xml index 7a436bebac34..cf84dd05496c 100644 --- a/doc/manual/env-common.xml +++ b/doc/manual/env-common.xml @@ -107,6 +107,17 @@ $ mount -o bind /mnt/otherdisk/nix /nix</screen> </varlistentry> + +<varlistentry><term><envar>TMPDIR</envar></term> + + <listitem><para>Use the specified directory to store temporary + files. In particular, this includes temporary build directories; + these can take up substantial amounts of disk space. The default is + <filename>/tmp</filename>.</para></listitem> + +</varlistentry> + + </variablelist> </sect1> diff --git a/doc/manual/nix-store.xml b/doc/manual/nix-store.xml index 5eb70c4eb93a..82c55daba620 100644 --- a/doc/manual/nix-store.xml +++ b/doc/manual/nix-store.xml @@ -1,133 +1,150 @@ <refentry> - <refnamediv> - <refname>nix-store</refname> - <refpurpose>manipulate or query the Nix store</refpurpose> - </refnamediv> - - <refsynopsisdiv> - <cmdsynopsis> - <command>nix-store</command> - <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="opt-common-syn.xml#xpointer(/nop/*)" /> - <arg choice='plain'><replaceable>operation</replaceable></arg> - <arg rep='repeat'><replaceable>options</replaceable></arg> - <arg rep='repeat'><replaceable>arguments</replaceable></arg> - </cmdsynopsis> - </refsynopsisdiv> - <refsection> - <title>Description</title> +<refnamediv> + <refname>nix-store</refname> + <refpurpose>manipulate or query the Nix store</refpurpose> +</refnamediv> - <para> - The command <command>nix-store</command> performs primitive - operations on the Nix store. You generally do not need to run - this command manually. - </para> +<refsynopsisdiv> + <cmdsynopsis> + <command>nix-store</command> + <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="opt-common-syn.xml#xpointer(/nop/*)" /> + <arg><option>--add-root</option> <replaceable>path</replaceable></arg> + <arg><option>--indirect</option></arg> + <arg choice='plain'><replaceable>operation</replaceable></arg> + <arg rep='repeat'><replaceable>options</replaceable></arg> + <arg rep='repeat'><replaceable>arguments</replaceable></arg> + </cmdsynopsis> +</refsynopsisdiv> - <para> - <command>nix-store</command> takes exactly one - <emphasis>operation</emphasis> flag which indicates the - subcommand to be performed. These are documented below. - </para> - </refsection> +<refsection><title>Description</title> +<para>The command <command>nix-store</command> performs primitive +operations on the Nix store. You generally do not need to run this +command manually.</para> +<para><command>nix-store</command> takes exactly one +<emphasis>operation</emphasis> flag which indicates the subcommand to +be performed. These are documented below.</para> - <!--######################################################################--> +</refsection> - <refsection> - <title>Common options</title> - <para> - This section lists the options that are common to all - operations. These options are allowed for every subcommand, - though they may not always have an effect. See also <xref - linkend="sec-common-options" />. - </para> - </refsection> +<!--######################################################################--> - +<refsection><title>Common options</title> - <!--######################################################################--> +<para>This section lists the options that are common to all +operations. These options are allowed for every subcommand, though +they may not always have an effect. See also <xref +linkend="sec-common-options" />.</para> - <refsection> - <title>Environment variables</title> +<variablelist> + + <varlistentry><term><option>--add-root</option> <replaceable>path</replaceable></term> + + <listitem><para>Causes the result of a build action + (<option>--realise</option> and <option>--force-realise</option>) + to be registered as a root of the garbage collector (see <xref + linkend="ssec-gc-roots" />). The root is stored in + <replaceable>path</replaceable>, which must be inside a directory + that is scanned for roots by the garbage collector (i.e., + typically in a subdirectory of + <filename>/nix/var/nix/gcroots/</filename>) + <emphasis>unless</emphasis> the <option>--indirect</option> flag + is used.</para></listitem> + + </varlistentry> - <para> - The following environment variables affect the behaviour of - <command>nix-store</command>. - </para> + <varlistentry><term><option>--indirect</option></term> + + <listitem> + + <para>In conjunction with <option>--add-root</option>, this option + allows roots to be stored <emphasis>outside</emphasis> of the GC + roots directory. This is useful for commands such as + <command>nix-build</command> that place a symlink to the build + result in the current directory; such a build result should not be + garbage-collected unless the symlink is removed.</para> + + <para>The <option>--indirect</option> flag causes a uniquely named + symlink to <replaceable>path</replaceable> to be stored in + <filename>/nix/var/nix/gcroots/auto/</filename>. For instance, + + <screen> +$ nix-store --add-root /home/eelco/bla/result --indirect -r <replaceable>...</replaceable> + +$ ls -l /nix/var/nix/gcroots/auto +lrwxrwxrwx 1 ... 2005-03-13 21:10 dn54lcypm8f8... -> /home/eelco/bla/result + +$ ls -l /home/eelco/bla/result +lrwxrwxrwx 1 ... 2005-03-13 21:10 /home/eelco/bla/result -> /nix/store/1r11343n6qd4...-f-spot-0.0.10</screen> + + Thus, when <filename>/home/eelco/bla/result</filename> is removed, + the GC root in the <filename>auto</filename> directory becomes a + dangling symlink and will be ignored by the collector.</para> + + <warning><para>Note that it is not possible to move or rename + indirect GC roots, since the symlink in the + <filename>auto</filename> directory will still point to the old + location.</para></warning> + + </listitem> + + </varlistentry> - <variablelist> - - <varlistentry> - <term><envar>TMPDIR</envar>=<replaceable>path</replaceable></term> - <listitem> - <para> - Use the directory <replaceable>path</replaceable> to store - temporary files. In particular, this includes temporary - build directories; these can take up substantial amounts - of disk space. The default is <filename>/tmp</filename>. - </para> - </listitem> - </varlistentry> - - </variablelist> - - </refsection> +</variablelist> + +</refsection> - <!--######################################################################--> +<!--######################################################################--> - <refsection id='rsec-nix-store-realise'> - <title>Operation <option>--realise</option></title> +<refsection id='rsec-nix-store-realise'><title>Operation +<option>--realise</option></title> - <refsection> - <title>Synopsis</title> - <cmdsynopsis> - <command>nix-store</command> - <group choice='req'> - <arg choice='plain'><option>--realise</option></arg> - <arg choice='plain'><option>-r</option></arg> - </group> - <arg choice='plain' rep='repeat'><replaceable>paths</replaceable></arg> - </cmdsynopsis> - </refsection> +<refsection><title>Synopsis</title> - <refsection> - <title>Description</title> - - <para> - The operation <option>--install</option> realises in the file - system the store expressions stored in - <replaceable>paths</replaceable>. If these expressions are - derivation expressions, they are first - <emphasis>normalised</emphasis> into a closure expression. - This may happen in two ways. First, the corresponding closure - expression (the <emphasis>successor</emphasis>) may already - known (either because the build has already been performed, or - because a successor was explicitly registered through the - <option>--successor</option> operation). Otherwise, the build - action described by the derivation is performed, and a closure - expression is computed by scanning the result of the build for - references to other paths in the store. - </para> +<cmdsynopsis> + <command>nix-store</command> + <group choice='req'> + <arg choice='plain'><option>--realise</option></arg> + <arg choice='plain'><option>-r</option></arg> + </group> + <arg choice='plain' rep='repeat'><replaceable>paths</replaceable></arg> +</cmdsynopsis> - <para> - The paths of the closure expression corresponding to each - expression in <replaceable>paths</replaceable> is printed on - standard output. - </para> +</refsection> - </refsection> +<refsection><title>Description</title> - </refsection> +<para>The operation <option>--install</option> realises in the file +system the store expressions stored in +<replaceable>paths</replaceable>. If these expressions are derivation +expressions, they are first <emphasis>normalised</emphasis> into a +closure expression. This may happen in two ways. First, the +corresponding closure expression (the <emphasis>successor</emphasis>) +may already known (either because the build has already been +performed, or because a successor was explicitly registered through +the <option>--successor</option> operation). Otherwise, the build +action described by the derivation is performed, and a closure +expression is computed by scanning the result of the build for +references to other paths in the store.</para> + +<para>The paths of the closure expression corresponding to each +expression in <replaceable>paths</replaceable> is printed on standard +output.</para> + +</refsection> + +</refsection> - <!--######################################################################--> +<!--######################################################################--> <refsection> <title>Operation <option>--gc</option></title> diff --git a/doc/manual/opt-common-syn.xml b/doc/manual/opt-common-syn.xml index 85740ba79702..8fa66e9becc4 100644 --- a/doc/manual/opt-common-syn.xml +++ b/doc/manual/opt-common-syn.xml @@ -19,5 +19,6 @@ <arg><option>-K</option></arg> <arg><option>--fallback</option></arg> <arg><option>--readonly-mode</option></arg> +<arg><option>--log-type</option> <replaceable>type</replaceable></arg> </nop> diff --git a/doc/manual/package-management.xml b/doc/manual/package-management.xml index 57967b6d9c38..0b0e57504a37 100644 --- a/doc/manual/package-management.xml +++ b/doc/manual/package-management.xml @@ -379,7 +379,7 @@ $ nix-collect-garbage --print-dead</screen> Likewise, the option <option>--print-live</option> will show the paths that <emphasis>won’t</emphasis> be deleted.</para> -<sect2><title>Garbage collector roots</title> +<sect2 id="ssec-gc-roots"><title>Garbage collector roots</title> <para>TODO</para> diff --git a/doc/manual/style.css b/doc/manual/style.css index c97cb9cbf4b8..544acb61eba2 100644 --- a/doc/manual/style.css +++ b/doc/manual/style.css @@ -154,7 +154,7 @@ a:hover { background: #ffffcd; } Special elements: ***************************************************************************/ -tt +tt, code { color: #400000; } |