qutebrowser: enable pipewire/webrtc (for wayland screensharing)

This commit is contained in:
John Axel Eriksson 2021-05-19 19:15:17 +02:00
parent 7a714e8ed2
commit 602a6372a5
No known key found for this signature in database
GPG key ID: 04ED6F42C62F42E9

View file

@ -1,6 +1,6 @@
{ lib, fetchurl, fetchzip, python3
{ stdenv, lib, fetchurl, fetchzip, python3
, mkDerivationWith, wrapQtAppsHook, wrapGAppsHook, qtbase, qtwebengine, glib-networking
, asciidoc, docbook_xml_dtd_45, docbook_xsl, libxml2
, asciidoc, docbook_xml_dtd_45, docbook_xsl, libxml2, pipewire_0_2
, libxslt, gst_all_1 ? null
, withPdfReader ? true
, withMediaPlayback ? true
@ -112,12 +112,16 @@ in mkDerivationWith python3Packages.buildPythonApplication rec {
done
'';
preFixup = ''
preFixup = let
libPath = lib.makeLibraryPath [ pipewire_0_2 ];
in
''
makeWrapperArgs+=(
"''${gappsWrapperArgs[@]}"
"''${qtWrapperArgs[@]}"
--add-flags '--backend ${backend}'
--set QUTE_QTWEBENGINE_VERSION_OVERRIDE "${lib.getVersion qtwebengine}"
${lib.optionalString (!stdenv.isDarwin && backend == "webengine") ''--prefix LD_LIBRARY_PATH : ${libPath}''}
)
'';