Fix building against current Nix master

This commit is contained in:
Eelco Dolstra 2014-12-01 10:07:10 +01:00
parent 71d61508f2
commit f92408136e

View file

@ -378,7 +378,7 @@ void NixRepl::loadFile(const Path & path)
loadedFiles.push_back(path);
Value v, v2;
state.evalFile(lookupFileArg(state, path), v);
Bindings bindings;
Bindings & bindings(*state.allocBindings(0));
state.autoCallFunction(bindings, v, v2);
addAttrsToScope(v2);
}