mirror of
https://github.com/NixOS/nix
synced 2025-06-30 03:23:16 +02:00
17 lines
306 B
C++
17 lines
306 B
C++
#include "eval.hh"
|
|
#include "util.hh"
|
|
#include "fs-input-accessor.hh"
|
|
|
|
namespace nix {
|
|
|
|
SourcePath EvalState::rootPath(const Path & path)
|
|
{
|
|
return {rootFS, CanonPath(path)};
|
|
}
|
|
|
|
void EvalState::registerAccessor(ref<InputAccessor> accessor)
|
|
{
|
|
inputAccessors.emplace(accessor->number, accessor);
|
|
}
|
|
|
|
}
|