mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-11 00:36:20 +02:00
Open the store before constructing EvalState.
EvalState requires the `store` global to be initialized before it is constructed in some cases, e.g. when it needs to download a tarball for something in NIX_PATH. Hence, this fixes #13.
This commit is contained in:
parent
dc8b51754b
commit
cfc874ee52
1 changed files with 1 additions and 2 deletions
|
@ -78,8 +78,6 @@ NixRepl::NixRepl(const Strings & searchPath)
|
||||||
, staticEnv(false, &state.staticBaseEnv)
|
, staticEnv(false, &state.staticBaseEnv)
|
||||||
{
|
{
|
||||||
curDir = absPath(".");
|
curDir = absPath(".");
|
||||||
|
|
||||||
store = openStore();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -622,6 +620,7 @@ int main(int argc, char * * argv)
|
||||||
return true;
|
return true;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
store = openStore();
|
||||||
NixRepl repl(searchPath);
|
NixRepl repl(searchPath);
|
||||||
repl.mainLoop(files);
|
repl.mainLoop(files);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue