Module builtins

Source
Expand description

This module implements the builtins exposed in the Nix language.

See //snix/eval/docs/builtins.md for a some context on the available builtins in Nix.

Modulesยง

hash ๐Ÿ”’
impure ๐Ÿ”’
placeholder_builtins ๐Ÿ”’
pure_builtins ๐Ÿ”’
to_xml ๐Ÿ”’
This module implements builtins.toXML, which is a serialisation of value information as well as internal snix state that several things in nixpkgs rely on.
versions ๐Ÿ”’

Constantsยง

CURRENT_PLATFORM

Functionsยง

bgc_insert_key ๐Ÿ”’
Internal helper function for genericClosure, determining whether a value has been seen before.
coerce_value_to_path
Coerce a Nix Value to a plain path, e.g. in order to access the file it points to via either builtins.toPath or an impure builtin. This coercion can never be performed in a Nix program without using builtins (i.e. the trick path: /. + path to convert from a string to a path wouldnโ€™t hit this code).
impure_builtins
Return all impure builtins, that is all builtins which may perform I/O outside of the VM and so cannot be used in all contexts (e.g. WASM).
placeholders
pure_builtins
The set of standard pure builtins in Nix, mostly concerned with data structure manipulation (string, attrs, list, etc. functions).