From e134ec7dbb7b44e05f4c7dd87c84b84978038567 Mon Sep 17 00:00:00 2001 From: Adam Joseph Date: Sun, 24 Apr 2022 22:21:33 -0700 Subject: [PATCH] calibre: omit pyqtwebengine on unsupported platforms --- pkgs/applications/misc/calibre/default.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkgs/applications/misc/calibre/default.nix b/pkgs/applications/misc/calibre/default.nix index b3754fed1796..8f672deb693b 100644 --- a/pkgs/applications/misc/calibre/default.nix +++ b/pkgs/applications/misc/calibre/default.nix @@ -104,7 +104,6 @@ mkDerivation rec { pillow pyqt-builder pyqt5 - pyqtwebengine python regex sip @@ -114,6 +113,11 @@ mkDerivation rec { pycryptodome # the following are distributed with calibre, but we use upstream instead odfpy + ] ++ lib.optionals (lib.lists.any (p: p == stdenv.hostPlatform.system) pyqtwebengine.meta.platforms) [ + # much of calibre's functionality is usable without a web + # browser, so we enable building on platforms which qtwebengine + # does not support by simply omitting qtwebengine. + pyqtwebengine ] ++ lib.optional (unrarSupport) unrardll );