From d442a38364ab826efedb795dfd8959877ec89414 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=A9clairevoyant?= <848000+eclairevoyant@users.noreply.github.com> Date: Mon, 29 Jul 2024 13:37:18 -0400 Subject: [PATCH] pkgs/top-level/config.nix: add options.handleEvalIssue --- pkgs/top-level/config.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pkgs/top-level/config.nix b/pkgs/top-level/config.nix index fedc62ecc78c..7069ea1e4688 100644 --- a/pkgs/top-level/config.nix +++ b/pkgs/top-level/config.nix @@ -250,6 +250,14 @@ let }; checkMetaRecursively = mkEnableOption "checking that the `meta` attribute of derivations and their references are correct during evalution"; + + handleEvalIssue = mkOption { + type = types.functionTo (types.functionTo types.bool); + internal = true; + description = '' + Function to handle evaluation errors and possibly output a more informative message. + ''; + }; }; in