2024-07-05 08:19:04 +00:00
|
|
|
{
|
|
|
|
mkDerivation,
|
|
|
|
lib,
|
2022-12-25 20:04:30 +00:00
|
|
|
extra-cmake-modules,
|
|
|
|
kdoctools,
|
|
|
|
breeze-icons,
|
|
|
|
chmlib,
|
|
|
|
discount,
|
|
|
|
djvulibre,
|
|
|
|
ebook_tools,
|
|
|
|
kactivities,
|
|
|
|
karchive,
|
|
|
|
kbookmarks,
|
|
|
|
kcompletion,
|
|
|
|
kconfig,
|
|
|
|
kconfigwidgets,
|
|
|
|
kcoreaddons,
|
|
|
|
kdbusaddons,
|
|
|
|
kdegraphics-mobipocket,
|
|
|
|
kiconthemes,
|
|
|
|
kjs,
|
|
|
|
khtml,
|
|
|
|
kio,
|
|
|
|
kparts,
|
|
|
|
kpty,
|
|
|
|
kpurpose,
|
|
|
|
kwallet,
|
|
|
|
kwindowsystem,
|
|
|
|
libkexiv2,
|
|
|
|
libspectre,
|
|
|
|
libzip,
|
|
|
|
phonon,
|
|
|
|
poppler,
|
|
|
|
qca-qt5,
|
|
|
|
qtdeclarative,
|
|
|
|
qtsvg,
|
|
|
|
threadweaver,
|
|
|
|
kcrash,
|
2023-03-17 22:39:35 +00:00
|
|
|
withSpeech ? true,
|
|
|
|
qtspeech,
|
|
|
|
qtx11extras,
|
2016-04-21 16:00:51 +00:00
|
|
|
}:
|
|
|
|
|
2017-05-16 15:56:41 +00:00
|
|
|
mkDerivation {
|
2020-12-24 23:05:07 +00:00
|
|
|
pname = "okular";
|
2022-12-25 20:04:30 +00:00
|
|
|
|
2017-05-17 19:26:11 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
extra-cmake-modules
|
|
|
|
kdoctools
|
|
|
|
];
|
2022-12-25 20:04:30 +00:00
|
|
|
|
2017-05-22 18:49:07 +00:00
|
|
|
buildInputs = [
|
2019-07-05 15:41:41 +00:00
|
|
|
breeze-icons
|
|
|
|
discount
|
|
|
|
djvulibre
|
|
|
|
ebook_tools
|
|
|
|
kactivities
|
|
|
|
karchive
|
|
|
|
kbookmarks
|
2018-03-05 05:31:50 +00:00
|
|
|
kcompletion
|
|
|
|
kconfig
|
|
|
|
kconfigwidgets
|
|
|
|
kcoreaddons
|
|
|
|
kdbusaddons
|
2020-10-28 08:13:05 +00:00
|
|
|
kdegraphics-mobipocket
|
|
|
|
kiconthemes
|
|
|
|
kjs
|
|
|
|
khtml
|
|
|
|
kio
|
|
|
|
kparts
|
|
|
|
kpty
|
|
|
|
kpurpose
|
|
|
|
kwallet
|
2018-03-05 05:31:50 +00:00
|
|
|
kwindowsystem
|
|
|
|
libkexiv2
|
|
|
|
libspectre
|
|
|
|
libzip
|
|
|
|
phonon
|
|
|
|
poppler
|
|
|
|
qca-qt5
|
2023-03-17 22:39:35 +00:00
|
|
|
qtdeclarative
|
|
|
|
qtsvg
|
|
|
|
threadweaver
|
|
|
|
kcrash
|
|
|
|
chmlib
|
|
|
|
qtx11extras
|
2022-12-25 20:04:30 +00:00
|
|
|
] ++ lib.optional withSpeech qtspeech;
|
2020-04-27 21:39:11 +00:00
|
|
|
|
|
|
|
# InitialPreference values are too high and end up making okular
|
|
|
|
# default for anything considered text/plain. Resetting to 1, which
|
|
|
|
# is the default.
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace generators/txt/okularApplication_txt.desktop \
|
|
|
|
--replace InitialPreference=3 InitialPreference=1
|
|
|
|
'';
|
|
|
|
|
2022-12-25 20:04:30 +00:00
|
|
|
cmakeFlags = lib.optional (!withSpeech) "-DFORCE_NOT_REQUIRED_DEPENDENCIES=Qt5TextToSpeech";
|
|
|
|
|
2018-03-05 05:31:50 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "http://www.kde.org";
|
2021-09-18 09:48:23 +00:00
|
|
|
description = "KDE document viewer";
|
2024-03-19 02:14:51 +00:00
|
|
|
mainProgram = "okular";
|
2022-10-27 20:47:29 +00:00
|
|
|
license = with licenses; [
|
|
|
|
gpl2Plus
|
|
|
|
lgpl21Plus
|
|
|
|
fdl12Plus
|
|
|
|
bsd3
|
|
|
|
];
|
2023-08-17 15:20:18 +00:00
|
|
|
maintainers = with maintainers; [ ttuegel ];
|
2018-03-05 05:31:50 +00:00
|
|
|
platforms = lib.platforms.linux;
|
2016-04-21 16:00:51 +00:00
|
|
|
};
|
|
|
|
}
|