Overview of the Nix Language: Difference between revisions
imported>Profpatsch m fix splitting mistake from inserting new subtopic |
imported>Surreal m Changing wording for relative paths becoming absolute upon evaluation. |
||
Line 60: | Line 60: | ||
| Floating-point numbers || Precision is limited || <code>1.2</code> | | Floating-point numbers || Precision is limited || <code>1.2</code> | ||
|- | |- | ||
| Path || relative paths will become | | Path || relative paths will become absolute when evaluated, paths must contain a slash. <code><nixpkgs/pkgs></code> is also possible and will resolve to the folder incl. subfolders in your NIX_PATH || <syntaxHighlight>./hello/world | ||
> /abs/path/to/hello/world | > /abs/path/to/hello/world | ||
</syntaxHighlight> | </syntaxHighlight> |