diff options
author | Shea Levy <shea@shealevy.com> | 2015-02-19 08:05:16 -0500 |
---|---|---|
committer | Shea Levy <shea@shealevy.com> | 2015-02-19 08:05:16 -0500 |
commit | e0953d53de1dbb89ef0ff779e53ffdb0d988e806 (patch) | |
tree | fdace2efd90da8735d3abb36a16f65aad9b28f79 /doc | |
parent | 1816ac0db1817642e27ef1544c7d9b904dbb670a (diff) |
Allow the leading component of a path to be a ~
Diffstat (limited to 'doc')
-rw-r--r-- | doc/manual/expressions/language-values.xml | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/doc/manual/expressions/language-values.xml b/doc/manual/expressions/language-values.xml index c3514e58f..0bf6632d6 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 |