qutebrowser: add withWebEngineDefault flag

Allows to set QtWebEngine backend by default.
This commit is contained in:
Nikolay Amiantov 2017-04-04 19:21:27 +03:00
parent e84d5b23e1
commit 527512e554

View File

@ -1,8 +1,10 @@
{ stdenv, fetchurl, unzip, buildPythonApplication, makeQtWrapper, wrapGAppsHook
{ stdenv, lib, fetchurl, unzip, buildPythonApplication, makeQtWrapper, wrapGAppsHook
, qtbase, pyqt5, jinja2, pygments, pyyaml, pypeg2, cssutils, glib_networking
, asciidoc, docbook_xml_dtd_45, docbook_xsl, libxml2, libxslt
, gst-plugins-base, gst-plugins-good, gst-plugins-bad, gst-plugins-ugly, gst-libav
, qtwebkit-plugins }:
, qtwebkit-plugins
, withWebEngineDefault ? false
}:
let
pdfjs = stdenv.mkDerivation rec {
@ -73,7 +75,8 @@ in buildPythonApplication rec {
postFixup = ''
mv $out/bin/qutebrowser $out/bin/.qutebrowser-noqtpath
makeQtWrapper $out/bin/.qutebrowser-noqtpath $out/bin/qutebrowser
makeQtWrapper $out/bin/.qutebrowser-noqtpath $out/bin/qutebrowser \
${lib.optionalString withWebEngineDefault ''--add-flags "--backend webengine"''}
sed -i 's/\.qutebrowser-wrapped/qutebrowser/g' $out/bin/..qutebrowser-wrapped-wrapped
'';