aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/nix-instantiate/main.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/nix-instantiate/main.cc b/src/nix-instantiate/main.cc
index b3a8e6870..75d03f329 100644
--- a/src/nix-instantiate/main.cc
+++ b/src/nix-instantiate/main.cc
@@ -100,8 +100,10 @@ void run(Strings args)
for (Strings::iterator i = files.begin();
i != files.end(); i++)
{
- Expr e = evalFile(state, absPath(*i));
- /* !!! parseOnly ignored */
+ Path path = absPath(*i);
+ Expr e = parseOnly
+ ? parseExprFromFile(state, path)
+ : evalFile(state, path);
printResult(state, e, evalOnly);
}