citra: fix Cubeb under SDL interface

https://github.com/NixOS/nixpkgs/issues/171173
main
Martino Fontana 2 years ago
parent 14a348fcc6
commit 7699ee4326
  1. 8
      pkgs/applications/emulators/citra/default.nix

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

Loading…
Cancel
Save