qutebrowser: 0.11 -> 1.0.1 (#30365)

* qutebrowser: 0.11 -> 1.0

This updates has a few breaking changes, most importantly WebEngine
is now enabled by default and the configuration system was completely
changed (requiring uers to manually migrate their configuration).

More info: https://blog.qutebrowser.org/qutebrowser-v100-released.html

* qutebrowser: 1.0.0 -> 1.0.1
This commit is contained in:
Eisfreak7 2017-10-13 12:15:19 -05:00 committed by Jörg Thalheim
parent 8efe90a3f4
commit 06fc476bc6
2 changed files with 15 additions and 11 deletions

View File

@ -2,10 +2,13 @@
, qtbase, pyqt5, jinja2, pygments, pyyaml, pypeg2, pyopengl, cssutils, glib_networking , qtbase, pyqt5, jinja2, pygments, pyyaml, pypeg2, pyopengl, cssutils, glib_networking
, asciidoc, docbook_xml_dtd_45, docbook_xsl, libxml2, libxslt , asciidoc, docbook_xml_dtd_45, docbook_xsl, libxml2, libxslt
, gst-plugins-base, gst-plugins-good, gst-plugins-bad, gst-plugins-ugly, gst-libav , gst-plugins-base, gst-plugins-good, gst-plugins-bad, gst-plugins-ugly, gst-libav
, qtwebkit-plugins , qtwebkit-plugins ? null
, withWebEngineDefault ? false , attrs
, withWebEngineDefault ? true
}: }:
assert (! withWebEngineDefault) -> qtwebkit-plugins != null;
let let
pdfjs = stdenv.mkDerivation rec { pdfjs = stdenv.mkDerivation rec {
name = "pdfjs-${version}"; name = "pdfjs-${version}";
@ -26,29 +29,30 @@ let
in buildPythonApplication rec { in buildPythonApplication rec {
name = "qutebrowser-${version}"; name = "qutebrowser-${version}";
version = "0.11.0"; version = "1.0.1";
namePrefix = ""; namePrefix = "";
src = fetchurl { src = fetchurl {
url = "https://github.com/The-Compiler/qutebrowser/releases/download/v${version}/${name}.tar.gz"; url = "https://github.com/The-Compiler/qutebrowser/releases/download/v${version}/${name}.tar.gz";
sha256 = "13ihx66jm1dd6vx8px7pm0kbzf2sf9x43hhivc1rp17kahnxxdyv"; sha256 = "1gphn8a0xfy5iqiznvgd6fbbzp7r5sp697ayfwnvllvmbr5az9vs";
}; };
# Needs tox # Needs tox
doCheck = false; doCheck = false;
buildInputs = [ buildInputs = [
qtbase qtwebkit-plugins qtbase
gst-plugins-base gst-plugins-good gst-plugins-bad gst-plugins-ugly gst-libav gst-plugins-base gst-plugins-good gst-plugins-bad gst-plugins-ugly gst-libav
glib_networking glib_networking
]; ]
++ lib.optional (! withWebEngineDefault) qtwebkit-plugins;
nativeBuildInputs = [ nativeBuildInputs = [
makeWrapper wrapGAppsHook asciidoc docbook_xml_dtd_45 docbook_xsl libxml2 libxslt makeWrapper wrapGAppsHook asciidoc docbook_xml_dtd_45 docbook_xsl libxml2 libxslt
]; ];
propagatedBuildInputs = [ propagatedBuildInputs = [
pyyaml pyqt5 jinja2 pygments pypeg2 cssutils pyopengl pyyaml pyqt5 jinja2 pygments pypeg2 cssutils pyopengl attrs
]; ];
postPatch = '' postPatch = ''
@ -62,7 +66,7 @@ in buildPythonApplication rec {
postInstall = '' postInstall = ''
install -Dm644 doc/qutebrowser.1 "$out/share/man/man1/qutebrowser.1" install -Dm644 doc/qutebrowser.1 "$out/share/man/man1/qutebrowser.1"
install -Dm644 qutebrowser.desktop \ install -Dm644 misc/qutebrowser.desktop \
"$out/share/applications/qutebrowser.desktop" "$out/share/applications/qutebrowser.desktop"
for i in 16 24 32 48 64 128 256 512; do for i in 16 24 32 48 64 128 256 512; do
install -Dm644 "icons/qutebrowser-''${i}x''${i}.png" \ install -Dm644 "icons/qutebrowser-''${i}x''${i}.png" \
@ -73,8 +77,8 @@ in buildPythonApplication rec {
install -Dm755 -t "$out/share/qutebrowser/userscripts/" misc/userscripts/* install -Dm755 -t "$out/share/qutebrowser/userscripts/" misc/userscripts/*
''; '';
postFixup = lib.optionalString withWebEngineDefault '' postFixup = lib.optionalString (! withWebEngineDefault) ''
wrapProgram $out/bin/qutebrowser --add-flags "--backend webengine" wrapProgram $out/bin/qutebrowser --add-flags "--backend webkit"
''; '';
meta = { meta = {

View File

@ -16190,7 +16190,7 @@ with pkgs;
falkon = libsForQt5.callPackage ../applications/networking/browsers/falkon { }; falkon = libsForQt5.callPackage ../applications/networking/browsers/falkon { };
qutebrowser = libsForQt5.callPackage ../applications/networking/browsers/qutebrowser { qutebrowser = libsForQt5.callPackage ../applications/networking/browsers/qutebrowser {
inherit (python3Packages) buildPythonApplication pyqt5 jinja2 pygments pyyaml pypeg2 cssutils pyopengl; inherit (python3Packages) buildPythonApplication pyqt5 jinja2 pygments pyyaml pypeg2 cssutils pyopengl attrs;
inherit (gst_all_1) gst-plugins-base gst-plugins-good gst-plugins-bad gst-plugins-ugly gst-libav; inherit (gst_all_1) gst-plugins-base gst-plugins-good gst-plugins-bad gst-plugins-ugly gst-libav;
}; };