about summary refs log tree commit diff
path: root/pkgs/applications/misc
diff options
context:
space:
mode:
authorAnderson Torres <torres.anderson.85@protonmail.com>2022-04-30 21:43:00 -0300
committerGitHub <noreply@github.com>2022-04-30 21:43:00 -0300
commite887de8d9c427748265aefcb56cc19bf71467e00 (patch)
tree460d49b7df24d9b5e65c57bd83b2522d13e474ab /pkgs/applications/misc
parent1ed876dcb9d350caa4d990a10cdd084f13dbf7bd (diff)
parente134ec7dbb7b44e05f4c7dd87c84b84978038567 (diff)
Merge pull request #170196 from a-m-joseph/qtwebengine-fix-platforms
[py]qtwebengine: meta.platforms
Diffstat (limited to 'pkgs/applications/misc')
-rw-r--r--pkgs/applications/misc/calibre/default.nix6
1 files changed, 5 insertions, 1 deletions
diff --git a/pkgs/applications/misc/calibre/default.nix b/pkgs/applications/misc/calibre/default.nix
index b3754fed17963..8f672deb693b5 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
   );