Function tvix_glue::tvix_build::derivation_to_build_request

source ·
pub(crate) fn derivation_to_build_request(
    derivation: &Derivation,
    inputs: BTreeMap<Bytes, Node>
) -> Result<BuildRequest>
Expand description

Takes a Derivation and turns it into a BuildRequest. It assumes the Derivation has been validated. It needs two lookup functions:

  • one translating input sources to a castore node (fn_input_sources_to_node)
  • one translating a tuple of drv path and (a subset of their) output names to castore nodes of the selected outpus (fn_input_drvs_to_output_nodes).