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.
This commit is contained in:
Yueh-Shun Li
2026-03-19 13:17:18 -07:00
committed by Philip Taron
parent cf7ebfa6ae
commit c42757764c
+1 -1
View File
@@ -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