pub(crate) fn derivation_into_build_request<D: Into<UnverifiedDerivation>>(
derivation: D,
inputs: &BTreeMap<StorePath, Node>,
) -> Result<BuildRequest>Expand description
Takes a [UnverifiedDerivation] and turns it into a BuildRequest.
NOTE: This takes a [UnverifiedDerivation] and not a [Derivation] because we want
to support the BuildDerivation daemon operation. And that operation sends a modified derivation
where input_derivations have been converted to output store paths and moved to input_sources
which can therefore not be verified.