Remove the 'prev' check

This commit is contained in:
Tom Sydney Kerckhove 2024-04-20 14:46:23 +02:00
parent 8c4c2156bd
commit ad65a50a94

View File

@ -454,11 +454,6 @@ struct CmdFlakeCheck : FlakeCommand
if (v.payload.lambda.fun->hasFormals()
|| !argHasName(v.payload.lambda.fun->arg, "final"))
throw Error("overlay does not take an argument named 'final'");
auto body = dynamic_cast<ExprLambda *>(v.payload.lambda.fun->body);
if (!body
|| body->hasFormals()
|| !argHasName(body->arg, "prev"))
throw Error("overlay does not take an argument named 'prev'");
// FIXME: if we have a 'nixpkgs' input, use it to
// evaluate the overlay.
} catch (Error & e) {