Skip to main content

nix_flake_lock

Function nix_flake_lock 

Source
pub unsafe extern "C" fn nix_flake_lock(
    context: *mut nix_c_context,
    fetchSettings: *mut nix_fetchers_settings,
    settings: *mut nix_flake_settings,
    eval_state: *mut EvalState,
    flags: *mut nix_flake_lock_flags,
    flake: *mut nix_flake_reference,
) -> *mut nix_locked_flake
Expand description

Lock a flake, if not already locked.

ยงArguments

  • context [out] - Optional, stores error information
  • settings [in] - The flake (and fetch) settings to use
  • flags [in] - The locking flags to use
  • flake [in] - The flake to lock