about summary refs log tree commit diff
path: root/doc
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2015-02-19T13·55+0100
committerEelco Dolstra <eelco.dolstra@logicblox.com>2015-02-19T13·55+0100
commitc33244d7c19a43173676d14215e188270f31f115 (patch)
tree04b336817bef045562b2a9c132994834a5b6c9b7 /doc
parent9bedd9b09b0b622286498b079207b80a4bbd1118 (diff)
parentc4653afbcd96bf8f43bb54c1c2f79a27fd615e11 (diff)
Merge branch 'tilde-paths' of https://github.com/shlevy/nix
Diffstat (limited to 'doc')
-rw-r--r--doc/manual/expressions/language-values.xml9
1 files changed, 8 insertions, 1 deletions
diff --git a/doc/manual/expressions/language-values.xml b/doc/manual/expressions/language-values.xml
index c3514e58f0de..0bf6632d6e3a 100644
--- a/doc/manual/expressions/language-values.xml
+++ b/doc/manual/expressions/language-values.xml
@@ -155,7 +155,14 @@ stdenv.mkDerivation {
   expression that contained it.  For instance, if a Nix expression in
   <filename>/foo/bar/bla.nix</filename> refers to
   <filename>../xyzzy/fnord.nix</filename>, the absolute path is
-  <filename>/foo/xyzzy/fnord.nix</filename>.</para></listitem>
+  <filename>/foo/xyzzy/fnord.nix</filename>.</para>
+
+  <para>If the first component of a path is a <literal>~</literal>,
+  it is interpreted as if the rest of the path were relative to the
+  user's home directory. e.g. <filename>~/foo</filename> would be
+  equivalent to <filename>/home/edolstra/foo</filename> for a user
+  whose home directory is <filename>/home/edolstra</filename>.
+  </para></listitem>
 
   <listitem><para><emphasis>Booleans</emphasis> with values
   <literal>true</literal> and