Merge pull request #213500 from ryanorendorff/patch-2

reaper: add curl and libxml2 ld_library_path deps
This commit is contained in:
Stanisław Pitucha 2023-02-28 19:12:16 +11:00 committed by GitHub
commit b8ea5a12fc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -4,8 +4,10 @@
, makeWrapper
, alsa-lib
, curl
, gtk3
, lame
, libxml2
, ffmpeg
, vlc
, xdg-utils
@ -69,8 +71,9 @@ stdenv.mkDerivation rec {
# Setting the rpath of the plugin shared object files does not
# seem to have an effect for some plugins.
# We opt for wrapping the executable with LD_LIBRARY_PATH prefix.
# Note that libcurl and libxml2 are needed for ReaPack to run.
wrapProgram $out/opt/REAPER/reaper \
--prefix LD_LIBRARY_PATH : "${lib.makeLibraryPath [ lame ffmpeg vlc xdotool ]}"
--prefix LD_LIBRARY_PATH : "${lib.makeLibraryPath [ curl lame libxml2 ffmpeg vlc xdotool stdenv.cc.cc.lib ]}"
mkdir $out/bin
ln -s $out/opt/REAPER/reaper $out/bin/