1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-30 03:23:16 +02:00

Store a ref to InputAccessor in SourcePath

This commit is contained in:
Eelco Dolstra 2022-07-06 17:25:15 +02:00
parent 72dffd6c6c
commit a18b3c665a
14 changed files with 44 additions and 31 deletions

View file

@ -5,13 +5,12 @@ namespace nix {
SourcePath EvalState::rootPath(const Path & path)
{
return {*rootFS, CanonPath(path)};
return {rootFS, CanonPath(path)};
}
InputAccessor & EvalState::registerAccessor(ref<InputAccessor> accessor)
void EvalState::registerAccessor(ref<InputAccessor> accessor)
{
inputAccessors.emplace(&*accessor, accessor);
return *accessor;
}
}