This is specifically used for the fetcher code (only). Moving it to there for now. Change-Id: I1e1d0541b85340ef4ff3a4c6b3fa99b51853f539 Reviewed-on: https://cl.tvl.fyi/c/depot/+/11532 Reviewed-by: edef <edef@edef.eu> Autosubmit: flokli <flokli@flokli.de> Tested-by: BuildkiteCI
23 lines
635 B
Rust
23 lines
635 B
Rust
pub mod builtins;
|
|
pub mod fetchers;
|
|
pub mod known_paths;
|
|
pub mod refscan;
|
|
pub mod tvix_build;
|
|
pub mod tvix_io;
|
|
pub mod tvix_store_io;
|
|
|
|
#[cfg(test)]
|
|
mod tests;
|
|
|
|
/// Tell the Evaluator to resolve `<nix>` to the path `/__corepkgs__`,
|
|
/// which has special handling in [tvix_io::TvixIO].
|
|
/// This is used in nixpkgs to import `fetchurl.nix` from `<nix>`.
|
|
pub fn configure_nix_path<IO>(
|
|
eval: &mut tvix_eval::Evaluation<IO>,
|
|
nix_search_path: &Option<String>,
|
|
) {
|
|
eval.nix_path = nix_search_path
|
|
.as_ref()
|
|
.map(|p| format!("nix=/__corepkgs__:{}", p))
|
|
.or_else(|| Some("nix=/__corepkgs__".to_string()));
|
|
}
|