buildEnv: allow spaces in pathsToLink (#451871)

This commit is contained in:
Yueh-Shun Li
2025-10-19 07:03:20 +00:00
committed by GitHub
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -15,7 +15,7 @@ $SIG{__DIE__} = sub { die "pkgs.buildEnv error: ", @_ };
my $out = $ENV{"out"};
my $extraPrefix = $ENV{"extraPrefix"};
my @pathsToLink = split ' ', $ENV{"pathsToLink"};
my @pathsToLink = @{decode_json $ENV{"pathsToLinkJSON"}};
sub isInPathsToLink($path) {
$path = "/" if $path eq "";
+1
View File
@@ -105,6 +105,7 @@ lib.makeOverridable (
nativeBuildInputs
buildInputs
;
pathsToLinkJSON = builtins.toJSON pathsToLink;
pkgs = builtins.toJSON chosenOutputs;
extraPathsFrom = lib.optional includeClosures (writeClosure pathsForClosure);
preferLocalBuild = true;