Skip to main content

nix_state_create

Function nix_state_create 

Source
pub unsafe extern "C" fn nix_state_create(
    context: *mut nix_c_context,
    lookupPath: *mut *const c_char,
    store: *mut Store,
) -> *mut EvalState
Expand description

Create a new Nix language evaluator state @ingroup libexpr_init For more control, use nix_eval_state_builder

§Arguments

  • context [out] - Optional, stores error information
  • lookupPath [in] - Null-terminated array of strings corresponding to entries in NIX_PATH.
  • store [in] - The Nix store to use.

§Returns

A new Nix state or NULL on failure. Call nix_state_free() when you’re done.

§See also

[nix_state_builder_new]