diff options
author | Martino Fontana <tinozzo123@tutanota.com> | 2022-05-07 16:27:23 +0200 |
---|---|---|
committer | Martino Fontana <tinozzo123@tutanota.com> | 2022-05-07 16:27:23 +0200 |
commit | 7699ee43269822c3844370b760507c4017bac7e1 (patch) | |
tree | 71860d6984042a3e6f242a94f67e7f50f829cea3 /pkgs/applications/emulators/citra | |
parent | 14a348fcc6c0d28804f640375f058d5491c2e1ee (diff) | |
download | nixlib-7699ee43269822c3844370b760507c4017bac7e1.tar nixlib-7699ee43269822c3844370b760507c4017bac7e1.tar.gz nixlib-7699ee43269822c3844370b760507c4017bac7e1.tar.bz2 nixlib-7699ee43269822c3844370b760507c4017bac7e1.tar.lz nixlib-7699ee43269822c3844370b760507c4017bac7e1.tar.xz nixlib-7699ee43269822c3844370b760507c4017bac7e1.tar.zst nixlib-7699ee43269822c3844370b760507c4017bac7e1.zip |
citra: fix Cubeb under SDL interface
https://github.com/NixOS/nixpkgs/issues/171173
Diffstat (limited to 'pkgs/applications/emulators/citra')
-rw-r--r-- | pkgs/applications/emulators/citra/default.nix | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/pkgs/applications/emulators/citra/default.nix b/pkgs/applications/emulators/citra/default.nix index 92d0f5b1d364..31f5ebc3038c 100644 --- a/pkgs/applications/emulators/citra/default.nix +++ b/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"; |