From 4fa63ffccacf5226242d52e3b8c2fd5204951f3e Mon Sep 17 00:00:00 2001 From: Yueh-Shun Li Date: Sun, 28 Sep 2025 03:05:49 +0800 Subject: [PATCH] lib.customisation: inherit unsafeGetAttrsPos in let-in --- lib/customisation.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/customisation.nix b/lib/customisation.nix index 16f248cd1b20..19c77633e6e3 100644 --- a/lib/customisation.nix +++ b/lib/customisation.nix @@ -3,6 +3,7 @@ let inherit (builtins) intersectAttrs + unsafeGetAttrPos ; inherit (lib) functionArgs @@ -303,7 +304,7 @@ rec { errorForArg = arg: let - loc = builtins.unsafeGetAttrPos arg fargs; + loc = unsafeGetAttrPos arg fargs; in "Function called without required argument \"${arg}\" at " + "${loc.file}:${toString loc.line}${prettySuggestions (getSuggestions arg)}";