1
0
Fork 0
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:
Eelco Dolstra 2025-02-19 12:46:22 +01:00
parent 5b7c240ebd
commit 99e78c37f7
6 changed files with 42 additions and 49 deletions

View file

@ -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));
}
}