about summary refs log tree commit diff
path: root/src/nix-instantiate
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2003-11-22T20·39+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2003-11-22T20·39+0000
commit9486dda1152d18b502fc31ff1d6aed4eba6f2fe3 (patch)
treec89d92a5b7a75529656a493969ee4a1c6349e9eb /src/nix-instantiate
parentab0bc4999a49efbc8e1c25989662a96e32fa0cc5 (diff)
* Fix nix-push.
Diffstat (limited to 'src/nix-instantiate')
-rw-r--r--src/nix-instantiate/main.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nix-instantiate/main.cc b/src/nix-instantiate/main.cc
index f63789fc4b4a..50a4991a53a8 100644
--- a/src/nix-instantiate/main.cc
+++ b/src/nix-instantiate/main.cc
@@ -53,8 +53,8 @@ static void printNixExpr(EvalState & state, Expr e)
         }
     }
 
-    if (ATgetType(e) == AT_LIST) {
-        for (ATermIterator i((ATermList) e); i; ++i)
+    if (atMatch(m, e) >> "List" >> es) {
+        for (ATermIterator i(es); i; ++i)
             printNixExpr(state, evalExpr(state, *i));
         return;
     }