summary refs log tree commit diff
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2014-05-29 19:02:14 +0200
committerEelco Dolstra <eelco.dolstra@logicblox.com>2014-05-29 19:02:14 +0200
commitbecc2b01678c5742b3fe6c379430606a5ef8e34d (patch)
tree207bb67839bdde538975c008c7d23ac54913fbf9
parent54a34119f349d531557af9e90d21d04d689ee817 (diff)
downloadguix-becc2b01678c5742b3fe6c379430606a5ef8e34d.tar.gz
Sort nixPath attributes
-rw-r--r--src/libexpr/primops.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libexpr/primops.cc b/src/libexpr/primops.cc
index 333748973d..993d290eb3 100644
--- a/src/libexpr/primops.cc
+++ b/src/libexpr/primops.cc
@@ -1392,6 +1392,7 @@ void EvalState::createBaseEnv()
         mkAttrs(*v2, 2);
         mkString(*allocAttr(*v2, symbols.create("path")), i.second);
         mkString(*allocAttr(*v2, symbols.create("prefix")), i.first);
+        v2->attrs->sort();
     }
     addConstant("nixPath", v);