mirror of
https://github.com/NixOS/nix
synced 2025-06-28 22:01:15 +02:00
Use UnionSourceAccessor to mount the chroot store on top of the real store directory
This commit is contained in:
parent
5b7c240ebd
commit
99e78c37f7
6 changed files with 42 additions and 49 deletions
|
@ -13,10 +13,4 @@ SourcePath EvalState::rootPath(PathView path)
|
|||
return {rootFS, CanonPath(absPath(path))};
|
||||
}
|
||||
|
||||
SourcePath EvalState::stringWithContextToPath(std::string_view s, const NixStringContext & context)
|
||||
{
|
||||
auto path = CanonPath(s);
|
||||
return !context.empty() ? SourcePath{storeFS, std::move(path)} : rootPath(std::move(path));
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue