aboutsummaryrefslogtreecommitdiff
path: root/src/libexpr/primops/fromTOML.cc
diff options
context:
space:
mode:
authorLily Foster <lily@lily.flowers>2021-12-28 10:10:58 -0500
committerLily Foster <lily@lily.flowers>2021-12-28 10:11:00 -0500
commit92c7d33ee32b9597fedee5f7371de54c0a10a5a5 (patch)
tree691a8ee7f856ecd0c5a19598ada9a2010fb91cae /src/libexpr/primops/fromTOML.cc
parent0e90b13ab1df925e549b5d55853b65911b4b40d3 (diff)
Sort attrs from tables in fromTOML
This was dropped in 10a8b5d for the migration from cpptoml to toml11 but seems to be necessary for the attrsets to work correctly. Fixes #5833
Diffstat (limited to 'src/libexpr/primops/fromTOML.cc')
-rw-r--r--src/libexpr/primops/fromTOML.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libexpr/primops/fromTOML.cc b/src/libexpr/primops/fromTOML.cc
index 221c40db9..30466fc5b 100644
--- a/src/libexpr/primops/fromTOML.cc
+++ b/src/libexpr/primops/fromTOML.cc
@@ -31,6 +31,8 @@ static void prim_fromTOML(EvalState & state, const Pos & pos, Value * * args, Va
auto & v2 = *state.allocAttr(v, state.symbols.create(elem.first));
visit(v2, elem.second);
}
+
+ v.attrs->sort();
}
break;;
case toml::value_t::array: