mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-11 00:36:20 +02:00
Fix IFD
This commit is contained in:
parent
df2aa29690
commit
8be06c9aa1
1 changed files with 2 additions and 6 deletions
|
@ -113,15 +113,11 @@ static SourcePath realisePath(EvalState & state, const PosIdx pos, Value & v, co
|
|||
}();
|
||||
|
||||
try {
|
||||
#if 0
|
||||
if (!context.empty()) {
|
||||
auto rewrites = state.realiseContext(context);
|
||||
// FIXME: check that path.accessor == rootFS?
|
||||
auto realPath = state.toRealPath(rewriteStrings(path.path, rewrites), context);
|
||||
// FIXME: return store accessor
|
||||
return state.rootPath(realPath);
|
||||
auto realPath = state.toRealPath(rewriteStrings(path.path.abs(), rewrites), context);
|
||||
return {path.accessor, CanonPath(realPath)};
|
||||
} else
|
||||
#endif
|
||||
return path;
|
||||
} catch (Error & e) {
|
||||
e.addTrace(state.positions[pos], "while realising the context of path '%s'", path);
|
||||
|
|
Loading…
Reference in a new issue