fix build with nix 2.14

This commit is contained in:
Jörg Thalheim 2023-03-09 22:18:00 +01:00
parent 94b3a3a43d
commit 54a9b26431

View file

@ -21,6 +21,7 @@
#include <nix/error.hh>
#include <nix/installables.hh>
#include <nix/path-with-outputs.hh>
#include <nix/installable-flake.hh>
#include <nix/value-to-json.hh>
@ -328,8 +329,9 @@ static void worker(ref<EvalState> state, Bindings &autoArgs, AutoCloseFD &to,
if (name == "recurseForDerivations") {
auto attrv =
v->attrs->get(state->sRecurseForDerivations);
recurse =
state->forceBool(*attrv->value, attrv->pos);
recurse = state->forceBool(
*attrv->value, attrv->pos,
"while evaluating recurseForDerivations");
}
}
if (recurse)