about summary refs log tree commit diff
path: root/src/nix-instantiate/nix-instantiate.cc
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2007-01-13T16·17+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2007-01-13T16·17+0000
commitf23dcdd60330c3b2f83b5b4278e38c245c397468 (patch)
tree0c0386b4b42d7974dff18e93485fdda7b9ad71eb /src/nix-instantiate/nix-instantiate.cc
parent05879db628a31f53c69a0fc29311c840c80837e0 (diff)
* Canonicalise ASTs in `nix-instantiate --eval': remove position
  info, sort attribute sets.

Diffstat (limited to 'src/nix-instantiate/nix-instantiate.cc')
-rw-r--r--src/nix-instantiate/nix-instantiate.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nix-instantiate/nix-instantiate.cc b/src/nix-instantiate/nix-instantiate.cc
index ffd8a2e71f40..41015c0eee54 100644
--- a/src/nix-instantiate/nix-instantiate.cc
+++ b/src/nix-instantiate/nix-instantiate.cc
@@ -45,7 +45,7 @@ static void printResult(EvalState & state, Expr e,
         if (xmlOutput)
             printTermAsXML(e, std::cout, context);
         else
-            std::cout << format("%1%\n") % e;
+            std::cout << format("%1%\n") % canonicaliseExpr(e);
     
     else {
         DrvInfos drvs;