aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Burdette <bburdette@gmail.com>2021-08-18 20:02:23 -0600
committerBen Burdette <bburdette@gmail.com>2021-08-18 20:02:23 -0600
commit22720215366ada555f077ffb8eb810029ec93a04 (patch)
tree3a3a8b4f7cdeda8474d303daa4e2c58ba9966fcf
parente82cf13b1e94a27b2d6402ff6850a5a11d18fb92 (diff)
more error fixes
-rw-r--r--src/libexpr/eval.cc9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/libexpr/eval.cc b/src/libexpr/eval.cc
index 48546e8ad..eef4974e5 100644
--- a/src/libexpr/eval.cc
+++ b/src/libexpr/eval.cc
@@ -1667,8 +1667,8 @@ void ExprWith::eval(EvalState & state, Env & env, Value & v)
env2.values[0] = (Value *) attrs;
if (debuggerHook) {
- forceAttrs(attrs);
- env2.valuemap = mapBindings(attrs->attrs);
+ state.forceAttrs(*env2.values[0]);
+ env2.valuemap.reset(mapBindings(*env2.values[0]->attrs));
}
@@ -2132,12 +2132,13 @@ string EvalState::coerceToString(const Pos & pos, Value & v, PathSet & context,
}
-string EvalState::copyPathToStore(Env &env, PathSet & context, const Path & path)
+string EvalState::copyPathToStore(PathSet & context, const Path & path)
{
if (nix::isDerivation(path))
throwEvalError("file names are not allowed to end in '%1%'",
drvExtension,
- map0());
+ fakeEnv(1));
+ // map0());
Path dstPath;
auto i = srcToStore.find(path);