Fix passing meta attribute to buildenv.nix

Since the meta attributes were not sorted, attribute lookup could
fail, leading to package priorities and active flags not working
correctly.

Broken since 0f24400d90.
This commit is contained in:
Eelco Dolstra 2014-03-11 17:31:13 +01:00
parent 92a848f674
commit 25386e5edc

View file

@ -91,6 +91,7 @@ bool createUserEnv(EvalState & state, DrvInfos & elems,
if (!v) continue; if (!v) continue;
vMeta.attrs->push_back(Attr(state.symbols.create(*j), v)); vMeta.attrs->push_back(Attr(state.symbols.create(*j), v));
} }
vMeta.attrs->sort();
v.attrs->sort(); v.attrs->sort();
if (drvPath != "") references.insert(drvPath); if (drvPath != "") references.insert(drvPath);