Skip to main content

fetchurl_derivation_to_fetch

Function fetchurl_derivation_to_fetch 

Source
pub fn fetchurl_derivation_to_fetch(
    drv: &UnverifiedDerivation,
) -> Result<Option<Fetch>, Error>
Expand description

Parses a [UnverifiedDerivation] to a Fetch if using the builtin:fetchurl command and otherwise valid

If it doesn’t use builtin:fetchurl as command, Ok(None) is returned. If it uses builtin:fetchurl, but is otherwise invalid, an Error is returned. Otherwise returns the synthesized Fetch.