From 8f9a499e4d371c4b87e1373f0ce40ec3e62602a0 Mon Sep 17 00:00:00 2001 From: Max Date: Mon, 21 Feb 2022 20:54:15 +0100 Subject: [PATCH] patch: flake: always evaluate thunks in inputs --- src/libexpr/flake/flake.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libexpr/flake/flake.cc b/src/libexpr/flake/flake.cc index 9f3b58909..fcd7aed22 100644 --- a/src/libexpr/flake/flake.cc +++ b/src/libexpr/flake/flake.cc @@ -73,7 +73,7 @@ static std::tuple fetchOrSubstituteTree( static void forceTrivialValue(EvalState & state, Value & value, const Pos & pos) { - if (value.isThunk() && value.isTrivial()) + if (value.isThunk()) // HACK: always forceValue, even if not trivial state.forceValue(value, pos); }