mirror of
https://github.com/NixOS/nix
synced 2025-07-06 21:41:48 +02:00
Allow the leading component of a path to be a ~
This commit is contained in:
parent
1816ac0db1
commit
e0953d53de
3 changed files with 19 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue