Skip to main content

nix_flake_lock_flags_add_input_override

Function nix_flake_lock_flags_add_input_override 

Source
pub unsafe extern "C" fn nix_flake_lock_flags_add_input_override(
    context: *mut nix_c_context,
    flags: *mut nix_flake_lock_flags,
    inputPath: *const c_char,
    flakeRef: *mut nix_flake_reference,
) -> nix_err
Expand description

Add input overrides to the lock flags

§Arguments

  • context [out] - Optional, stores error information
  • flags [in] - The flags to modify
  • inputPath [in] - The input path to override (must not be empty)
  • flakeRef [in] - The flake reference to use as the override

§Returns

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.