patch: flake: always evaluate thunks in inputs

This commit is contained in:
Max Headroom 2022-02-21 20:54:15 +01:00
parent 2ea1d02e50
commit 8f9a499e4d

View file

@ -73,7 +73,7 @@ static std::tuple<fetchers::Tree, FlakeRef, FlakeRef> 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);
}