diff options
author | Cray Elliott <MP2E@archlinux.us> | 2017-08-19 23:10:55 -0700 |
---|---|---|
committer | Cray Elliott <MP2E@archlinux.us> | 2017-08-19 23:10:55 -0700 |
commit | b427d4a4bbd401e401e92fde249af00b5b22d71b (patch) | |
tree | a21aa82a5b7a76155176a5dc108f889496397d80 /pkgs/applications/networking/instant-messengers/discord | |
parent | b744ee2d939aa1af64795330c9671971db66f7bd (diff) | |
download | nixlib-b427d4a4bbd401e401e92fde249af00b5b22d71b.tar nixlib-b427d4a4bbd401e401e92fde249af00b5b22d71b.tar.gz nixlib-b427d4a4bbd401e401e92fde249af00b5b22d71b.tar.bz2 nixlib-b427d4a4bbd401e401e92fde249af00b5b22d71b.tar.lz nixlib-b427d4a4bbd401e401e92fde249af00b5b22d71b.tar.xz nixlib-b427d4a4bbd401e401e92fde249af00b5b22d71b.tar.zst nixlib-b427d4a4bbd401e401e92fde249af00b5b22d71b.zip |
discord: work around upstream bug via pulseaudio
upstream bug causes large ping/high cpu usage when when using voice chat if pulseaudio is not available at runtime, even though the executable only explicitly needs ALSA after a fix hits upstream, I will make pulseaudio support optional and return the default to alsa https://github.com/crmarsh/discord-linux-bugs/issues/16
Diffstat (limited to 'pkgs/applications/networking/instant-messengers/discord')
-rw-r--r-- | pkgs/applications/networking/instant-messengers/discord/default.nix | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/applications/networking/instant-messengers/discord/default.nix b/pkgs/applications/networking/instant-messengers/discord/default.nix index f787f3f26e92..6267a3c8eb76 100644 --- a/pkgs/applications/networking/instant-messengers/discord/default.nix +++ b/pkgs/applications/networking/instant-messengers/discord/default.nix @@ -2,7 +2,7 @@ , alsaLib, atk, cairo, cups, dbus, expat, fontconfig, freetype, gdk_pixbuf , glib, gnome2, gtk2, libnotify, libX11, libXcomposite, libXcursor, libXdamage , libXext, libXfixes, libXi, libXrandr, libXrender, libXtst, nspr, nss, libxcb -, pango, systemd, libXScrnSaver, libcxx }: +, pango, systemd, libXScrnSaver, libcxx, libpulseaudio }: stdenv.mkDerivation rec { @@ -36,7 +36,7 @@ stdenv.mkDerivation rec { paxmark m $out/opt/Discord - wrapProgram $out/opt/Discord --prefix LD_LIBRARY_PATH : "$LD_LIBRARY_PATH:${libcxx}/lib:${systemd.lib}/lib" + wrapProgram $out/opt/Discord --prefix LD_LIBRARY_PATH : "$LD_LIBRARY_PATH:${libcxx}/lib:${systemd.lib}/lib:${libpulseaudio}/lib" ln -s $out/opt/Discord $out/bin/ ln -s $out/opt/discord.png $out/share/pixmaps |