From ad65a50a94a97bf1f1a1902f43542d28a2e8206b Mon Sep 17 00:00:00 2001 From: Tom Sydney Kerckhove Date: Sat, 20 Apr 2024 14:46:23 +0200 Subject: [PATCH] Remove the 'prev' check --- src/nix/flake.cc | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/nix/flake.cc b/src/nix/flake.cc index 4825ab0e1..d5987237f 100644 --- a/src/nix/flake.cc +++ b/src/nix/flake.cc @@ -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(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) {