zynaddsubfx: use for loop to set rpath for vst libraries
This commit is contained in:
parent
5b44e6010d
commit
6c3be14afe
@ -115,11 +115,9 @@ in stdenv.mkDerivation rec {
|
|||||||
# When building with zest GUI, patch plugins
|
# When building with zest GUI, patch plugins
|
||||||
# and standalone executable to properly locate zest
|
# and standalone executable to properly locate zest
|
||||||
postFixup = lib.optionalString (guiModule == "zest") ''
|
postFixup = lib.optionalString (guiModule == "zest") ''
|
||||||
patchelf --set-rpath "${mruby-zest}:$(patchelf --print-rpath "$out/lib/lv2/ZynAddSubFX.lv2/ZynAddSubFX_ui.so")" \
|
for lib in "$out/lib/lv2/ZynAddSubFX.lv2/ZynAddSubFX_ui.so" "$out/lib/vst/ZynAddSubFX.so"; do
|
||||||
"$out/lib/lv2/ZynAddSubFX.lv2/ZynAddSubFX_ui.so"
|
patchelf --set-rpath "${mruby-zest}:$(patchelf --print-rpath "$lib")" "$lib"
|
||||||
|
done
|
||||||
patchelf --set-rpath "${mruby-zest}:$(patchelf --print-rpath "$out/lib/vst/ZynAddSubFX.so")" \
|
|
||||||
"$out/lib/vst/ZynAddSubFX.so"
|
|
||||||
|
|
||||||
wrapProgram "$out/bin/zynaddsubfx" \
|
wrapProgram "$out/bin/zynaddsubfx" \
|
||||||
--prefix PATH : ${mruby-zest} \
|
--prefix PATH : ${mruby-zest} \
|
||||||
|
Loading…
Reference in New Issue
Block a user