From 5a07f707c58763a1e72e0ea0c046e060589d9cef Mon Sep 17 00:00:00 2001 From: Matt Sturgeon Date: Fri, 22 Aug 2025 18:29:32 +0100 Subject: [PATCH] lib.customisation.callPackageWith: fix line number interpolation We need to use `toString` on `loc.line` because it is an int. --- lib/customisation.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/customisation.nix b/lib/customisation.nix index 802c9ef9a4b8e..ba06dfb8055bc 100644 --- a/lib/customisation.nix +++ b/lib/customisation.nix @@ -287,7 +287,7 @@ rec { loc = builtins.unsafeGetAttrPos arg fargs; in "Function called without required argument \"${arg}\" at " - + "${loc.file}:${loc.line}${prettySuggestions (getSuggestions arg)}"; + + "${loc.file}:${toString loc.line}${prettySuggestions (getSuggestions arg)}"; # Only show the error for the first missing argument error = errorForArg (head (attrNames missingArgs));