mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-26 15:56:18 +02:00
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)
|
||||
{
|
||||
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