From 2989a23fca1e6f0d9c7627b41dc09fd8eb82e4f5 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Fri, 6 Feb 2026 14:55:57 +0100 Subject: [PATCH] builtins.flakeRefToString: Evaluate attributes Fixes "attribute 'x' is a thunk". --- src/libflake/flake-primops.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/libflake/flake-primops.cc b/src/libflake/flake-primops.cc index 962edbb3d..a43777574 100644 --- a/src/libflake/flake-primops.cc +++ b/src/libflake/flake-primops.cc @@ -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;