2020-04-24 23:36:52 +00:00
|
|
|
{
|
|
|
|
stdenv, mkDerivation, lib,
|
|
|
|
extra-cmake-modules, kdoctools,
|
|
|
|
breeze-icons, chmlib ? null, discount, djvulibre, ebook_tools, kactivities,
|
|
|
|
karchive, kbookmarks, kcompletion, kconfig, kconfigwidgets, kcoreaddons,
|
|
|
|
kdbusaddons, kdegraphics-mobipocket, kiconthemes, kjs, khtml, kio, kparts,
|
2020-11-03 02:18:15 +00:00
|
|
|
kpty, kpurpose, kwallet, kwindowsystem, libkexiv2, libspectre, libzip, phonon, poppler,
|
2022-09-09 14:08:57 +00:00
|
|
|
qca-qt5, qtdeclarative, qtsvg, threadweaver, kcrash, qtspeech
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
mkDerivation {
|
2021-01-05 17:05:55 +00:00
|
|
|
pname = "okular";
|
2020-04-24 23:36:52 +00:00
|
|
|
nativeBuildInputs = [ extra-cmake-modules kdoctools ];
|
|
|
|
buildInputs = [
|
|
|
|
breeze-icons discount djvulibre ebook_tools kactivities karchive kbookmarks
|
|
|
|
kcompletion kconfig kconfigwidgets kcoreaddons kdbusaddons
|
2020-11-03 02:18:15 +00:00
|
|
|
kdegraphics-mobipocket kiconthemes kjs khtml kio kparts kpty kpurpose kwallet
|
2020-04-24 23:36:52 +00:00
|
|
|
kwindowsystem libkexiv2 libspectre libzip phonon poppler qca-qt5
|
2022-09-09 14:08:57 +00:00
|
|
|
qtdeclarative qtsvg threadweaver kcrash qtspeech
|
2020-04-24 23:36:52 +00:00
|
|
|
] ++ lib.optional (!stdenv.isAarch64) chmlib;
|
2020-05-03 17:38:23 +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
|
|
|
|
'';
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = with lib; {
|
|
|
|
homepage = "http://www.kde.org";
|
2021-09-28 08:13:01 +00:00
|
|
|
description = "KDE document viewer";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = with licenses; [ gpl2 lgpl21 fdl12 bsd3 ];
|
|
|
|
maintainers = with maintainers; [ ttuegel turion ];
|
|
|
|
platforms = lib.platforms.linux;
|
|
|
|
};
|
|
|
|
}
|