Skip to main content

nix_derivation_to_json

Function nix_derivation_to_json 

Source
pub unsafe extern "C" fn nix_derivation_to_json(
    context: *mut nix_c_context,
    drv: *const nix_derivation,
    callback: nix_get_string_callback,
    userdata: *mut c_void,
) -> nix_err
Expand description

Gets the derivation as a JSON string

ยงArguments

  • context [out] - Optional, stores error information
  • drv [in] - The derivation
  • callback [in] - Called with the JSON string
  • userdata [in] - Arbitrary data passed to the callback