···142142143143144144# Create the symlinks.
145145+my $extraPrefix = $ENV{"extraPrefix"};
145146my $nrLinks = 0;
146147foreach my $relName (sort keys %symlinks) {
147148 my ($target, $priority) = @{$symlinks{$relName}};
148148- my $abs = "$out/$relName";
149149+ my $abs = "$out" . "$extraPrefix" . "/$relName";
149150 next unless isInPathsToLink $relName;
150151 if ($target eq "") {
151152 #print "creating directory $relName\n";
+8-2
pkgs/build-support/buildenv/default.nix
···2121 # directories in the list is not symlinked.
2222 pathsToLink ? ["/"]
23232424-, # Shell command to run after building the symlink tree.
2424+, # Root the result in directory "$out${extraPrefix}", e.g. "/share".
2525+ extraPrefix ? ""
2626+2727+, # Shell commands to run after building the symlink tree.
2528 postBuild ? ""
26293030+, # Additional inputs. Handy e.g. if using makeWrapper in `postBuild`.
3131+ buildInputs ? []
3232+2733, passthru ? {}
2834}:
29353036runCommand name
3131- { inherit manifest ignoreCollisions passthru pathsToLink postBuild;
3737+ { inherit manifest ignoreCollisions passthru pathsToLink extraPrefix postBuild buildInputs;
3238 pkgs = builtins.toJSON (map (drv: {
3339 paths = [ drv ]; # FIXME: handle multiple outputs
3440 priority = drv.meta.priority or 5;