Nix (language): Difference between revisions

imported>Mickours
imported>Charlycoste
m typo
Line 19: Line 19:
=== Lazy ===
=== Lazy ===


Not all expressions in nixpkgs will be evaluated and instantiated as nix performs evaluation only when needed for a finished output. In the following example <code>abort</code> will never be triggered as the variable it belogs to is unused:
Not all expressions in nixpkgs will be evaluated and instantiated as nix performs evaluation only when needed for a finished output. In the following example <code>abort</code> will never be triggered as the variable it belongs to is unused:
<syntaxHighlight lang=nix>
<syntaxHighlight lang=nix>
let
let