openjfx: Fix for CA derivations
Manipulating the store paths on the Nix side doesn’t work with CA derivations (because these paths are just placeholders of the form `/{hash}` at eval-time)
This commit is contained in:
parent
9775b39fd4
commit
de2afd359d
@ -95,8 +95,9 @@ in makePackage {
|
|||||||
|
|
||||||
postFixup = ''
|
postFixup = ''
|
||||||
# Remove references to bootstrap.
|
# Remove references to bootstrap.
|
||||||
|
export openjdkOutPath='${openjdk11_headless.outPath}'
|
||||||
find "$out" -name \*.so | while read lib; do
|
find "$out" -name \*.so | while read lib; do
|
||||||
new_refs="$(patchelf --print-rpath "$lib" | sed -E 's,:?${lib.escape ["+"] openjdk11_headless.outPath}[^:]*,,')"
|
new_refs="$(patchelf --print-rpath "$lib" | perl -pe 's,:?\Q$ENV{openjdkOutPath}\E[^:]*,,')"
|
||||||
patchelf --set-rpath "$new_refs" "$lib"
|
patchelf --set-rpath "$new_refs" "$lib"
|
||||||
done
|
done
|
||||||
'';
|
'';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user