summary refs log tree commit diff
path: root/pkgs/development/libraries/qt-6/modules/qtwebengine.nix
diff options
context:
space:
mode:
authorLászló Vaskó <1771332+vlaci@users.noreply.github.com>2023-08-04 13:56:39 +0200
committerLászló Vaskó <1771332+vlaci@users.noreply.github.com>2023-08-14 19:33:19 +0200
commite4dcdb133a290b11537a1ef6af4fde0b76cf8807 (patch)
treef193f5a28373f712f227adbd01f4afec3542ba29 /pkgs/development/libraries/qt-6/modules/qtwebengine.nix
parent0c79d4f14764e62ee49872c98cb9f4fcc7e7f6e7 (diff)
downloadnixpkgs-e4dcdb133a290b11537a1ef6af4fde0b76cf8807.tar
nixpkgs-e4dcdb133a290b11537a1ef6af4fde0b76cf8807.tar.gz
nixpkgs-e4dcdb133a290b11537a1ef6af4fde0b76cf8807.tar.bz2
nixpkgs-e4dcdb133a290b11537a1ef6af4fde0b76cf8807.tar.lz
nixpkgs-e4dcdb133a290b11537a1ef6af4fde0b76cf8807.tar.xz
nixpkgs-e4dcdb133a290b11537a1ef6af4fde0b76cf8807.tar.zst
nixpkgs-e4dcdb133a290b11537a1ef6af4fde0b76cf8807.zip
qtwebengine: link to pulseaudio
Nix builds of QTWebEngine doesn't support sound output via Pulse, only
through ALSA, unless sandboxing is disabled and LD_LIBRARY_PATH
contains a reference to the Pulse libraries.

By default, Chromium won't link to PulseAudio, but dlopens it in
run-time. It is tricky to make this work because of the nontrivial
sandbox configuration. Nix builds of Chromium already link against
Pulse directly, so it makes sense to copy this behavior in
QTWebEngine.
Diffstat (limited to 'pkgs/development/libraries/qt-6/modules/qtwebengine.nix')
-rw-r--r--pkgs/development/libraries/qt-6/modules/qtwebengine.nix1
1 files changed, 1 insertions, 0 deletions
diff --git a/pkgs/development/libraries/qt-6/modules/qtwebengine.nix b/pkgs/development/libraries/qt-6/modules/qtwebengine.nix
index 909616d953d..0c243d4ba7a 100644
--- a/pkgs/development/libraries/qt-6/modules/qtwebengine.nix
+++ b/pkgs/development/libraries/qt-6/modules/qtwebengine.nix
@@ -135,6 +135,7 @@ qtModule {
     # environment variable, since NixOS relies on it working.
     # See https://github.com/NixOS/nixpkgs/issues/226484 for more context.
     ../patches/qtwebengine-xkb-includes.patch
+    ../patches/qtwebengine-link-pulseaudio.patch
   ];
 
   postPatch = ''