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