mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-11 15:27:20 +03:00
qutebrowser: add withWebEngineDefault flag
Allows to set QtWebEngine backend by default.
This commit is contained in:
parent
e84d5b23e1
commit
527512e554
@ -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
|
||||
'';
|
||||
|
Loading…
Reference in New Issue
Block a user