Fix sourceInfo

This commit is contained in:
Eelco Dolstra 2019-08-30 17:27:51 +02:00
parent 80c36d4562
commit a49b6761a5

View file

@ -511,6 +511,7 @@ void callFlake(EvalState & state,
auto & vSourceInfo = *state.allocValue(); auto & vSourceInfo = *state.allocValue();
state.mkAttrs(vSourceInfo, 8); state.mkAttrs(vSourceInfo, 8);
emitSourceInfoAttrs(state, flake.sourceInfo, vSourceInfo); emitSourceInfoAttrs(state, flake.sourceInfo, vSourceInfo);
vSourceInfo.attrs->sort();
vInputs.attrs->push_back(Attr(state.sSelf, &vRes)); vInputs.attrs->push_back(Attr(state.sSelf, &vRes));