···7777 chmod -R a+w externals/zstd
7878 '';
79798080- # Todo: cubeb audio backend (the default one) doesn't work on the SDL interface.
8181- # This seems to be a problem with libpulseaudio, other applications have similar problems (e.g Duckstation).
8282- # Note that the two interfaces have two separate configuration files.
8080+ # Fixes https://github.com/NixOS/nixpkgs/issues/171173
8181+ postInstall = lib.optionalString (enableCubeb && enableSdl2) ''
8282+ wrapProgram "$out/bin/citra" \
8383+ --prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath [ libpulseaudio ]}
8484+ '';
83858486 meta = with lib; {
8587 homepage = "https://citra-emu.org";