From 602a6372a56d1417280cb5cb87716e7dba5f9f3e Mon Sep 17 00:00:00 2001 From: John Axel Eriksson Date: Wed, 19 May 2021 19:15:17 +0200 Subject: [PATCH] qutebrowser: enable pipewire/webrtc (for wayland screensharing) --- .../networking/browsers/qutebrowser/default.nix | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/pkgs/applications/networking/browsers/qutebrowser/default.nix b/pkgs/applications/networking/browsers/qutebrowser/default.nix index e5503e9d4cdc..f3799123e71e 100644 --- a/pkgs/applications/networking/browsers/qutebrowser/default.nix +++ b/pkgs/applications/networking/browsers/qutebrowser/default.nix @@ -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}''} ) '';