mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-26 15:56:18 +02:00
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
This commit is contained in:
parent
0e90b13ab1
commit
92c7d33ee3
1 changed files with 2 additions and 0 deletions
|
@ -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));
|
auto & v2 = *state.allocAttr(v, state.symbols.create(elem.first));
|
||||||
visit(v2, elem.second);
|
visit(v2, elem.second);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
v.attrs->sort();
|
||||||
}
|
}
|
||||||
break;;
|
break;;
|
||||||
case toml::value_t::array:
|
case toml::value_t::array:
|
||||||
|
|
Loading…
Reference in a new issue