Nix Language: Tips & Tricks: Difference between revisions
imported>Toraritte Moved from "Overview of Nix Expression Language" |
imported>Toraritte m Add relevant pages |
||
| Line 90: | Line 90: | ||
Note that this requires <code>./.</code> to refer to the current directory, but also importantly requires the leading slash on the quoted-string-path part. | Note that this requires <code>./.</code> to refer to the current directory, but also importantly requires the leading slash on the quoted-string-path part. | ||
== Writing update scripts / Referencing a relative path as string | == Writing update scripts / Referencing a relative path as string == | ||
Nix has relative path syntax that describes files relative to the current nix file, for example | Nix has relative path syntax that describes files relative to the current nix file, for example | ||
| Line 158: | Line 158: | ||
We can use this trick to update the sources of nix expressions (for example by generating a script which updates a json file with the software’s hashes). | We can use this trick to update the sources of nix expressions (for example by generating a script which updates a json file with the software’s hashes). | ||
== Relevant pages == | |||
* [[Overview of the Nix Expression Language]] | |||
* [[Editor Modes for Nix Files]] | |||
* [[Nix Expression Language: Learning resources|Learning resources]] | |||
[[Category: Nix Expression Language]] | [[Category: Nix Expression Language]] | ||
[[Category: Cookbook]] | [[Category: Cookbook]] | ||