forked from lix-project/lix
Make "nix-instantiate -" interruptible
This commit is contained in:
parent
15e1b2c223
commit
f7b650d234
|
@ -26,9 +26,7 @@ void printHelp()
|
|||
static Expr * parseStdin(EvalState & state)
|
||||
{
|
||||
startNest(nest, lvlTalkative, format("parsing standard input"));
|
||||
string s, s2;
|
||||
while (getline(std::cin, s2)) s += s2 + "\n";
|
||||
return state.parseExprFromString(s, absPath("."));
|
||||
return state.parseExprFromString(drainFD(0), absPath("."));
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue