duckstation: fix Cubeb under SDL interface

https://github.com/NixOS/nixpkgs/issues/171173
This commit is contained in:
Martino Fontana 2022-05-07 16:27:51 +02:00
parent 7699ee4326
commit a62444153e

View File

@ -90,8 +90,9 @@ mkDerivation rec {
runHook postCheck runHook postCheck
''; '';
# Libpulseaudio fixes https://github.com/NixOS/nixpkgs/issues/171173
qtWrapperArgs = [ qtWrapperArgs = [
"--prefix LD_LIBRARY_PATH : ${vulkan-loader}/lib" "--prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath [ libpulseaudio vulkan-loader ]}"
]; ];
meta = with lib; { meta = with lib; {
@ -102,5 +103,3 @@ mkDerivation rec {
platforms = platforms.linux; platforms = platforms.linux;
}; };
} }
# TODO: default sound backend (cubeb) does not work, but SDL does. Strangely,
# switching to cubeb while a game is running makes it work.