Nix 2.34.6
Nix, the purely functional package manager: C API (experimental)
Loading...
Searching...
No Matches
nix_value Struct Reference

A Nix language value, or thunk that may evaluate to a value. More...

#include <nix_api_expr.h>

Detailed Description

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.

See also
Value Creation, Value Extraction
nix_value_incref, nix_value_decref

The documentation for this struct was generated from the following file:
  • /builddir/build/BUILD/nix-2.34.6-build/nix-2.34.6/src/libexpr-c/nix_api_expr.h