flake_lock_flags_add_input_override

Function flake_lock_flags_add_input_override 

Source
pub unsafe extern "C" fn flake_lock_flags_add_input_override(
    context: *mut c_context,
    flags: *mut flake_lock_flags,
    inputPath: *const c_char,
    flakeRef: *mut flake_reference,
) -> err
Expand description

@brief Add input overrides to the lock flags @param[out] context Optional, stores error information @param[in] flags The flags to modify @param[in] inputPath The input path to override (must not be empty) @param[in] flakeRef The flake reference to use as the override @return NIX_ERR_NIX_ERROR if inputPath is empty

This switches the flags to nix_flake_lock_flags_set_mode_virtual if not in mode nix_flake_lock_flags_set_mode_check.