mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-28 16:46:16 +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 {
|
try {
|
||||||
#if 0
|
|
||||||
if (!context.empty()) {
|
if (!context.empty()) {
|
||||||
auto rewrites = state.realiseContext(context);
|
auto rewrites = state.realiseContext(context);
|
||||||
// FIXME: check that path.accessor == rootFS?
|
auto realPath = state.toRealPath(rewriteStrings(path.path.abs(), rewrites), context);
|
||||||
auto realPath = state.toRealPath(rewriteStrings(path.path, rewrites), context);
|
return {path.accessor, CanonPath(realPath)};
|
||||||
// FIXME: return store accessor
|
|
||||||
return state.rootPath(realPath);
|
|
||||||
} else
|
} else
|
||||||
#endif
|
|
||||||
return path;
|
return path;
|
||||||
} catch (Error & e) {
|
} catch (Error & e) {
|
||||||
e.addTrace(state.positions[pos], "while realising the context of path '%s'", path);
|
e.addTrace(state.positions[pos], "while realising the context of path '%s'", path);
|
||||||
|
|
Loading…
Reference in a new issue