Merge pull request #106815 from mayflower/firefox-pipewire-fix-106812

firefox-wayland: fix ScreenCast #106812
This commit is contained in:
Martin Weinelt 2020-12-25 19:35:47 +01:00 committed by GitHub
commit 445cb38134
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -347,6 +347,10 @@ buildStdenv.mkDerivation ({
}/lib:$(patchelf --print-rpath "$out"/lib/${binaryName}*/libxul.so)" \
"$out"/lib/${binaryName}*/libxul.so
patchelf --add-needed ${xorg.libXScrnSaver.out}/lib/libXss.so $out/lib/${binaryName}/${binaryName}
${lib.optionalString (pipewireSupport && lib.versionAtLeast ffversion "83") ''
patchelf --add-needed "${lib.getLib pipewire}/lib/libpipewire-0.3.so" \
"$out"/lib/${binaryName}/${binaryName}
''}
'';
doInstallCheck = true;