diff options
-rw-r--r-- | src/nix-instantiate/nix-instantiate.cc | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/nix-instantiate/nix-instantiate.cc b/src/nix-instantiate/nix-instantiate.cc index beb7fa024959..6ddf9f069ef3 100644 --- a/src/nix-instantiate/nix-instantiate.cc +++ b/src/nix-instantiate/nix-instantiate.cc @@ -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(".")); } |