Function nix_store_realise

Source
pub unsafe extern "C" fn nix_store_realise(
    context: *mut nix_c_context,
    store: *mut Store,
    path: *mut StorePath,
    userdata: *mut c_void,
    callback: Option<unsafe extern "C" fn(userdata: *mut c_void, outname: *const c_char, out: *const c_char)>,
) -> nix_err
Expand description

Realise a Nix store path Blocking, calls callback once for each realised output.

Note When working with expressions, consider using e.g. nix_string_realise to get the output. .drvPath may not be accurate or available in the future. See https://github.com/NixOS/nix/issues/6507

ยงArguments

  • context [out] - Optional, stores error information
  • store [in] - Nix Store reference
  • path [in] - Path to build
  • userdata [in] - data to pass to every callback invocation
  • callback [in] - called for every realised output