nix-language
Nix language
Read sources.json for the documented release and exact upstream revision. Establish the project's target Nix version and evaluation mode before relying on version-sensitive behaviour. The references describe that pinned release, not necessarily the user's installed evaluator. If versions differ, verify the relevant feature against the target version's manual or executable; preserve experimental and pure-evaluation restrictions.
Working with expressions
Read the affected expression and its callers before changing it.
Trace argument bindings, attribute selection, and when values are forced.
Reuse existing project functions and conventions; choose the smallest correct change.
Distinguish language built-ins from functions supplied by Nixpkgs lib, and ordinary attribute sets from NixOS module option merging.
Do not infer package APIs or service options from this language reference.
Read only the relevant section of the language reference: