Skip to main content

nix_store_drv_from_store_path

Function nix_store_drv_from_store_path 

Source
pub unsafe extern "C" fn nix_store_drv_from_store_path(
    context: *mut nix_c_context,
    store: *mut Store,
    path: *const StorePath,
) -> *mut nix_derivation
Expand description

Returns the derivation associated with the store path

§Arguments

  • context [out] - Optional, stores error information
  • store [in] - The nix store
  • path [in] - The nix store path

§Returns

A new derivation, or NULL on error. Free with nix_derivation_free when done using the nix_derivation.