snix_glue::snix_build

Function get_all_inputs

Source
pub(crate) fn get_all_inputs<'a, F, Fut>(
    derivation: &'a Derivation,
    known_paths: &'a KnownPaths,
    get_path_info: F,
) -> impl Stream<Item = Result<(StorePath<String>, Node), Error>>
where F: Fn(StorePath<String>) -> Fut, Fut: Future<Output = Result<Option<PathInfo>>>,
Expand description

Get a stream of a transitive input closure for a derivation. It’s used for input propagation into the build and nixbase32 needle propagation for build output refscanning.