mirror of
https://github.com/NixOS/nix.git
synced 2025-11-11 21:16:02 +01:00
This way, we don't need the PathDisplaySourceAccessor source accessor hack, since error messages are produced directly by the original source accessor. In fact, we don't even need to copy the inputs to the store at all, so this gets us very close to lazy trees. We just need to know the store path so that requires hashing the entire input, which isn't lazy. But the next step will be to use a virtual store path that gets rewritten to the actual store path only when needed.
14 lines
300 B
C++
14 lines
300 B
C++
#pragma once
|
|
|
|
#include "source-accessor.hh"
|
|
|
|
namespace nix {
|
|
|
|
struct MountedSourceAccessor : SourceAccessor
|
|
{
|
|
virtual void mount(CanonPath mountPoint, ref<SourceAccessor> accessor) = 0;
|
|
};
|
|
|
|
ref<MountedSourceAccessor> makeMountedSourceAccessor(std::map<CanonPath, ref<SourceAccessor>> mounts);
|
|
|
|
}
|