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 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.

§See also

[nix_state_builder_new]