|
Nix 2.34.6
Nix, the purely functional package manager: C API (experimental)
|
A Nix language value, or thunk that may evaluate to a value. More...
#include <nix_api_expr.h>
A Nix language value, or thunk that may evaluate to a value.
Values are the primary objects manipulated in the Nix language. They are considered to be immutable from a user's perspective, but the process of evaluating a value changes its ValueType if it was a thunk. After a value has been evaluated, its ValueType does not change.
Evaluation in this context refers to the process of evaluating a single value object, also called "forcing" the value; see nix_value_force.
The evaluator manages its own memory, but your use of the C API must follow the reference counting rules.