Module tvix_eval::compiler::import

source ·
Expand description

This module implements the Nix language’s import feature, which is exposed as a builtin in the Nix language.

This is not a typical builtin, as it needs access to internal compiler and VM state (such as the crate::SourceCode instance, or observers).

Functions§

  • Constructs the import builtin. This builtin is special in that it needs to capture the crate::SourceCode structure to correctly track source code locations while invoking a compiler.