Merge pull request #10572 from NorfairKing/no-more-prev

Remove the 'prev' check entirely.
This commit is contained in:
Eelco Dolstra 2024-04-22 10:53:31 +02:00 committed by GitHub
commit cf1adbdd64
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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) {