mirror of
https://github.com/NixOS/nix
synced 2025-06-25 10:41:16 +02:00
16 lines
251 B
C++
16 lines
251 B
C++
#include "eval.hh"
|
|
#include "store-api.hh"
|
|
|
|
namespace nix {
|
|
|
|
SourcePath EvalState::rootPath(CanonPath path)
|
|
{
|
|
return {rootFS, std::move(path)};
|
|
}
|
|
|
|
SourcePath EvalState::rootPath(PathView path)
|
|
{
|
|
return {rootFS, CanonPath(absPath(path))};
|
|
}
|
|
|
|
}
|