From c42757764ca0fcfb190a535a92fd04111f331a4a Mon Sep 17 00:00:00 2001 From: Yueh-Shun Li Date: Sun, 17 Aug 2025 04:22:04 +0800 Subject: [PATCH] buildEnv: specify extraPathsFrom a string as expected by the builder Specify `extraPathsFrom` as a string using `lib.optionalString` instead of a singleton list using `lib.optional` to align with the current behavior of the Perl build script. --- pkgs/build-support/buildenv/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/build-support/buildenv/default.nix b/pkgs/build-support/buildenv/default.nix index e694a9b838e1..0f95f118d4bf 100644 --- a/pkgs/build-support/buildenv/default.nix +++ b/pkgs/build-support/buildenv/default.nix @@ -109,7 +109,7 @@ lib.makeOverridable ( ; pathsToLinkJSON = builtins.toJSON pathsToLink; pkgs = builtins.toJSON chosenOutputs; - extraPathsFrom = lib.optional includeClosures (writeClosure pathsForClosure); + extraPathsFrom = lib.optionalString includeClosures (writeClosure pathsForClosure); preferLocalBuild = true; allowSubstitutes = false; # XXX: The size is somewhat arbitrary