mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2025-02-16 15:17:18 +02:00
Merge pull request #10572 from NorfairKing/no-more-prev
Remove the 'prev' check entirely.
This commit is contained in:
commit
cf1adbdd64
1 changed files with 0 additions and 5 deletions
|
@ -454,11 +454,6 @@ struct CmdFlakeCheck : FlakeCommand
|
||||||
if (v.payload.lambda.fun->hasFormals()
|
if (v.payload.lambda.fun->hasFormals()
|
||||||
|| !argHasName(v.payload.lambda.fun->arg, "final"))
|
|| !argHasName(v.payload.lambda.fun->arg, "final"))
|
||||||
throw Error("overlay does not take an argument named '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
|
// FIXME: if we have a 'nixpkgs' input, use it to
|
||||||
// evaluate the overlay.
|
// evaluate the overlay.
|
||||||
} catch (Error & e) {
|
} catch (Error & e) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue