2 , extra-cmake-modules, kdoctools
3 , breeze-icons, chmlib, discount, djvulibre, ebook_tools, kactivities
4 , karchive, kbookmarks, kcompletion, kconfig, kconfigwidgets, kcoreaddons
5 , kdbusaddons, kdegraphics-mobipocket, kiconthemes, kjs, khtml, kio, kparts
6 , kpty, kpurpose, kwallet, kwindowsystem, libkexiv2, libspectre, libzip, phonon, poppler
7 , qca-qt5, qtdeclarative, qtsvg, threadweaver, kcrash
8 , withSpeech ? true, qtspeech, qtx11extras
14 nativeBuildInputs = [ extra-cmake-modules kdoctools ];
17 breeze-icons discount djvulibre ebook_tools kactivities karchive kbookmarks
18 kcompletion kconfig kconfigwidgets kcoreaddons kdbusaddons
19 kdegraphics-mobipocket kiconthemes kjs khtml kio kparts kpty kpurpose kwallet
20 kwindowsystem libkexiv2 libspectre libzip phonon poppler qca-qt5
21 qtdeclarative qtsvg threadweaver kcrash chmlib qtx11extras
22 ] ++ lib.optional withSpeech qtspeech;
24 # InitialPreference values are too high and end up making okular
25 # default for anything considered text/plain. Resetting to 1, which
28 substituteInPlace generators/txt/okularApplication_txt.desktop \
29 --replace InitialPreference=3 InitialPreference=1
32 cmakeFlags = lib.optional (!withSpeech) "-DFORCE_NOT_REQUIRED_DEPENDENCIES=Qt5TextToSpeech";
35 homepage = "http://www.kde.org";
36 description = "KDE document viewer";
37 mainProgram = "okular";
38 license = with licenses; [ gpl2Plus lgpl21Plus fdl12Plus bsd3 ];
39 maintainers = with maintainers; [ ttuegel ];
40 platforms = lib.platforms.linux;