wine: fix missing runpath entries

This commit is contained in:
John Chadwick
2025-11-15 16:32:33 -05:00
parent b7281d85ea
commit 33ae8c3ce4

View File

@@ -209,7 +209,7 @@ stdenv.mkDerivation (
# LD_LIBRARY_PATH. # LD_LIBRARY_PATH.
NIX_LDFLAGS = toString ( NIX_LDFLAGS = toString (
map (path: "-rpath " + path) ( map (path: "-rpath " + path) (
map (x: "${lib.getLib x}/lib") [ stdenv.cc.cc ] map (x: "${lib.getLib x}/lib") ([ stdenv.cc.cc ] ++ finalAttrs.buildInputs)
# libpulsecommon.so is linked but not found otherwise # libpulsecommon.so is linked but not found otherwise
++ lib.optionals supportFlags.pulseaudioSupport ( ++ lib.optionals supportFlags.pulseaudioSupport (
map (x: "${lib.getLib x}/lib/pulseaudio") (toBuildInputs pkgArches (pkgs: [ pkgs.libpulseaudio ])) map (x: "${lib.getLib x}/lib/pulseaudio") (toBuildInputs pkgArches (pkgs: [ pkgs.libpulseaudio ]))