Skip to content

Commit 121665f

Browse files
committed
nix-env: Use state.mkList, required for correct stats
1 parent 260c614 commit 121665f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/nix-env/nix-env.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ static void loadSourceExpr(EvalState & state, const SourcePath & path, Value & v
172172
directory). */
173173
else if (st.type == InputAccessor::tDirectory) {
174174
auto attrs = state.buildBindings(maxAttrs);
175-
attrs.alloc("_combineChannels").mkList(0);
175+
state.mkList(attrs.alloc("_combineChannels"), 0);
176176
StringSet seen;
177177
getAllExprs(state, path, seen, attrs);
178178
v.mkAttrs(attrs);

0 commit comments

Comments
 (0)