Merge pull request #15160 from NixOS/fix-flakeRefToString

builtins.flakeRefToString: Evaluate attributes
This commit is contained in:
Eelco Dolstra
2026-02-06 18:21:20 +00:00
committed by GitHub

View File

@@ -128,6 +128,7 @@ static void prim_flakeRefToString(EvalState & state, const PosIdx pos, Value **
state.forceAttrs(*args[0], noPos, "while evaluating the argument passed to builtins.flakeRefToString");
fetchers::Attrs attrs;
for (const auto & attr : *args[0]->attrs()) {
state.forceValue(*attr.value, attr.pos);
auto t = attr.value->type();
if (t == nInt) {
auto intValue = attr.value->integer().value;