qtwebengine: enable pipewire/webrtc

This commit is contained in:
John Axel Eriksson 2021-05-19 19:14:38 +02:00
parent 066fb63b02
commit 7a714e8ed2
No known key found for this signature in database
GPG Key ID: 04ED6F42C62F42E9

View File

@ -12,6 +12,7 @@
, libcap , libcap
, pciutils , pciutils
, systemd , systemd
, pipewire_0_2
, enableProprietaryCodecs ? true , enableProprietaryCodecs ? true
, gn , gn
, cups, darwin, openbsm, runCommand, xcbuild, writeScriptBin , cups, darwin, openbsm, runCommand, xcbuild, writeScriptBin
@ -141,6 +142,7 @@ qtModule {
''; '';
qmakeFlags = [ "--" "-system-ffmpeg" ] qmakeFlags = [ "--" "-system-ffmpeg" ]
++ optional stdenv.isLinux "-webengine-webrtc-pipewire"
++ optional enableProprietaryCodecs "-proprietary-codecs"; ++ optional enableProprietaryCodecs "-proprietary-codecs";
propagatedBuildInputs = [ propagatedBuildInputs = [
@ -173,6 +175,9 @@ qtModule {
# X11 libs # X11 libs
xorg.xrandr libXScrnSaver libXcursor libXrandr xorg.libpciaccess libXtst xorg.xrandr libXScrnSaver libXcursor libXrandr xorg.libpciaccess libXtst
xorg.libXcomposite xorg.libXdamage libdrm xorg.libXcomposite xorg.libXdamage libdrm
# Pipewire
pipewire_0_2
] ]
# FIXME These dependencies shouldn't be needed but can't find a way # FIXME These dependencies shouldn't be needed but can't find a way