summary refs log tree commit diff
path: root/pkgs/applications/kde/okular.nix
diff options
context:
space:
mode:
authorPeter Hoeg <peter@hoeg.com>2018-03-07 09:28:18 +0800
committerPeter Hoeg <peter@hoeg.com>2018-03-07 09:57:34 +0800
commit18e97a3575b18dcebf36b796ede4e47ad46aa1a8 (patch)
tree3373ee6abf794c5b0ec5387c48510c4da5e91711 /pkgs/applications/kde/okular.nix
parent5f9a1c18f2c103039e4c24088a06ca46e73a10a3 (diff)
downloadnixpkgs-18e97a3575b18dcebf36b796ede4e47ad46aa1a8.tar
nixpkgs-18e97a3575b18dcebf36b796ede4e47ad46aa1a8.tar.gz
nixpkgs-18e97a3575b18dcebf36b796ede4e47ad46aa1a8.tar.bz2
nixpkgs-18e97a3575b18dcebf36b796ede4e47ad46aa1a8.tar.lz
nixpkgs-18e97a3575b18dcebf36b796ede4e47ad46aa1a8.tar.xz
nixpkgs-18e97a3575b18dcebf36b796ede4e47ad46aa1a8.tar.zst
nixpkgs-18e97a3575b18dcebf36b796ede4e47ad46aa1a8.zip
okular: exclude chmlib on ARM
Diffstat (limited to 'pkgs/applications/kde/okular.nix')
-rw-r--r--pkgs/applications/kde/okular.nix8
1 files changed, 4 insertions, 4 deletions
diff --git a/pkgs/applications/kde/okular.nix b/pkgs/applications/kde/okular.nix
index 36573f9aeb9..5f6f28c95b0 100644
--- a/pkgs/applications/kde/okular.nix
+++ b/pkgs/applications/kde/okular.nix
@@ -1,7 +1,7 @@
 {
-  mkDerivation, lib,
+  stdenv, mkDerivation, lib,
   extra-cmake-modules, kdoctools,
-  chmlib, discount, djvulibre, ebook_tools, kactivities, karchive, kbookmarks,
+  chmlib ? null, discount, djvulibre, ebook_tools, kactivities, karchive, kbookmarks,
   kcompletion, kconfig, kconfigwidgets, kcoreaddons, kdbusaddons,
   kdegraphics-mobipocket, kiconthemes, kjs, khtml, kio, kparts, kpty, kwallet,
   kwindowsystem, libkexiv2, libspectre, libzip, phonon, poppler, qca-qt5,
@@ -12,12 +12,12 @@ mkDerivation {
   name = "okular";
   nativeBuildInputs = [ extra-cmake-modules kdoctools ];
   buildInputs = [
-    chmlib discount djvulibre ebook_tools kactivities karchive kbookmarks
+    discount djvulibre ebook_tools kactivities karchive kbookmarks
     kcompletion kconfig kconfigwidgets kcoreaddons kdbusaddons
     kdegraphics-mobipocket kiconthemes kjs khtml kio kparts kpty kwallet
     kwindowsystem libkexiv2 libspectre libzip phonon poppler qca-qt5
     qtdeclarative qtsvg threadweaver
-  ];
+  ] ++ lib.optional (!stdenv.isAarch64) chmlib;
   meta = with lib; {
     homepage = http://www.kde.org;
     license = with licenses; [ gpl2 lgpl21 fdl12 bsd3 ];