Merge pull request #207723 from SuperSandro2000/okular-speech

authored by

Sandro and committed by
GitHub
def5159f 7d91ec68

+14 -10
+14 -10
pkgs/applications/kde/okular.nix
··· 1 - { 2 - stdenv, mkDerivation, lib, 3 - extra-cmake-modules, kdoctools, 4 - breeze-icons, chmlib, discount, djvulibre, ebook_tools, kactivities, 5 - karchive, kbookmarks, kcompletion, kconfig, kconfigwidgets, kcoreaddons, 6 - kdbusaddons, kdegraphics-mobipocket, kiconthemes, kjs, khtml, kio, kparts, 7 - kpty, kpurpose, kwallet, kwindowsystem, libkexiv2, libspectre, libzip, phonon, poppler, 8 - qca-qt5, qtdeclarative, qtsvg, threadweaver, kcrash, qtspeech 1 + { stdenv, mkDerivation, lib 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 9 9 }: 10 10 11 11 mkDerivation { 12 12 pname = "okular"; 13 + 13 14 nativeBuildInputs = [ extra-cmake-modules kdoctools ]; 15 + 14 16 buildInputs = [ 15 17 breeze-icons discount djvulibre ebook_tools kactivities karchive kbookmarks 16 18 kcompletion kconfig kconfigwidgets kcoreaddons kdbusaddons 17 19 kdegraphics-mobipocket kiconthemes kjs khtml kio kparts kpty kpurpose kwallet 18 20 kwindowsystem libkexiv2 libspectre libzip phonon poppler qca-qt5 19 - qtdeclarative qtsvg threadweaver kcrash qtspeech chmlib 20 - ]; 21 + qtdeclarative qtsvg threadweaver kcrash chmlib 22 + ] ++ lib.optional withSpeech qtspeech; 21 23 22 24 # InitialPreference values are too high and end up making okular 23 25 # default for anything considered text/plain. Resetting to 1, which ··· 26 28 substituteInPlace generators/txt/okularApplication_txt.desktop \ 27 29 --replace InitialPreference=3 InitialPreference=1 28 30 ''; 31 + 32 + cmakeFlags = lib.optional (!withSpeech) "-DFORCE_NOT_REQUIRED_DEPENDENCIES=Qt5TextToSpeech"; 29 33 30 34 meta = with lib; { 31 35 homepage = "http://www.kde.org";