Function nix_store_real_path

Source
pub unsafe extern "C" fn nix_store_real_path(
    context: *mut nix_c_context,
    store: *mut Store,
    path: *mut StorePath,
    callback: nix_get_string_callback,
    user_data: *mut c_void,
) -> nix_err
Expand description

Get the physical location of a store path A store may reside at a different location than its storeDir suggests. This situation is called a relocated store. Relocated stores are used during NixOS installation, as well as in restricted computing environments that don’t offer a writable /nix/store. Not all types of stores support this operation.

§Arguments

  • context [in] - Optional, stores error information
  • store [in] - nix store reference
  • path [in] - the path to get the real path from
  • callback [in] - called with the real path
  • user_data [in] - arbitrary data, passed to the callback when it’s called.