diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2020-07-23 10:38:19 +0200 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2020-07-23 18:27:11 +0200 |
commit | c20c0823838d257b1e18e71c307f53afac0d2b39 (patch) | |
tree | 71953a617b385c30ad8563bce4fc61879a2a3742 /doc/manual/expressions/derivations.xml | |
parent | 942cd687f9ae190fc9a989a46c3207bd38377ade (diff) |
<envar> -> <literal>
Diffstat (limited to 'doc/manual/expressions/derivations.xml')
-rw-r--r-- | doc/manual/expressions/derivations.xml | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/doc/manual/expressions/derivations.xml b/doc/manual/expressions/derivations.xml index 6f6297565..a11de0088 100644 --- a/doc/manual/expressions/derivations.xml +++ b/doc/manual/expressions/derivations.xml @@ -122,7 +122,7 @@ the Nixpkgs manual for details.</para> <itemizedlist> <listitem><para>A temporary directory is created under the directory - specified by <envar>TMPDIR</envar> (default + specified by <literal>TMPDIR</literal> (default <filename>/tmp</filename>) where the build will take place. The current directory is changed to this directory.</para></listitem> @@ -133,29 +133,29 @@ the Nixpkgs manual for details.</para> <itemizedlist> - <listitem><para><envar>NIX_BUILD_TOP</envar> contains the path of + <listitem><para><literal>NIX_BUILD_TOP</literal> contains the path of the temporary directory for this build.</para></listitem> - <listitem><para>Also, <envar>TMPDIR</envar>, - <envar>TEMPDIR</envar>, <envar>TMP</envar>, <envar>TEMP</envar> + <listitem><para>Also, <literal>TMPDIR</literal>, + <literal>TEMPDIR</literal>, <literal>TMP</literal>, <literal>TEMP</literal> are set to point to the temporary directory. This is to prevent the builder from accidentally writing temporary files anywhere else. Doing so might cause interference by other processes.</para></listitem> - <listitem><para><envar>PATH</envar> is set to + <listitem><para><literal>PATH</literal> is set to <filename>/path-not-set</filename> to prevent shells from initialising it to their built-in default value.</para></listitem> - <listitem><para><envar>HOME</envar> is set to + <listitem><para><literal>HOME</literal> is set to <filename>/homeless-shelter</filename> to prevent programs from using <filename>/etc/passwd</filename> or the like to find the user's home directory, which could cause impurity. Usually, when - <envar>HOME</envar> is set, it is used as the location of the home + <literal>HOME</literal> is set, it is used as the location of the home directory, even if it points to a non-existent path.</para></listitem> - <listitem><para><envar>NIX_STORE</envar> is set to the path of the + <listitem><para><literal>NIX_STORE</literal> is set to the path of the top-level Nix store directory (typically, <filename>/nix/store</filename>).</para></listitem> |