mirror of
https://github.com/NixOS/nix.git
synced 2025-11-09 12:06:01 +01:00
Expose the fact that storeFS is a MountedSourceAccessor
This will become useful.
This commit is contained in:
parent
8ef70ef522
commit
35189c0ae0
2 changed files with 3 additions and 2 deletions
|
|
@ -240,7 +240,7 @@ EvalState::EvalState(
|
|||
|
||||
auto realStoreDir = dirOf(store->toRealPath(StorePath::dummy));
|
||||
if (settings.pureEval || store->storeDir != realStoreDir) {
|
||||
accessor = settings.pureEval ? storeFS : makeUnionSourceAccessor({accessor, storeFS});
|
||||
accessor = settings.pureEval ? storeFS.cast<SourceAccessor>() : makeUnionSourceAccessor({accessor, storeFS});
|
||||
}
|
||||
|
||||
/* Apply access control if needed. */
|
||||
|
|
|
|||
|
|
@ -48,6 +48,7 @@ class StorePath;
|
|||
struct SingleDerivedPath;
|
||||
enum RepairFlag : bool;
|
||||
struct MemorySourceAccessor;
|
||||
struct MountedSourceAccessor;
|
||||
|
||||
namespace eval_cache {
|
||||
class EvalCache;
|
||||
|
|
@ -319,7 +320,7 @@ public:
|
|||
/**
|
||||
* The accessor corresponding to `store`.
|
||||
*/
|
||||
const ref<SourceAccessor> storeFS;
|
||||
const ref<MountedSourceAccessor> storeFS;
|
||||
|
||||
/**
|
||||
* The accessor for the root filesystem.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue