2016-07-30 03:00:07 +02:00
|
|
|
{
|
2018-03-07 02:28:18 +01:00
|
|
|
stdenv, mkDerivation, lib,
|
2017-05-17 21:26:11 +02:00
|
|
|
extra-cmake-modules, kdoctools,
|
2019-07-05 17:41:41 +02:00
|
|
|
breeze-icons, 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, qtdeclarative, qtsvg, threadweaver, kcrash
|
2016-04-21 18:00:51 +02:00
|
|
|
}:
|
|
|
|
|
2017-05-16 17:56:41 +02:00
|
|
|
mkDerivation {
|
|
|
|
name = "okular";
|
2017-05-17 21:26:11 +02:00
|
|
|
nativeBuildInputs = [ extra-cmake-modules kdoctools ];
|
2017-05-22 20:49:07 +02:00
|
|
|
buildInputs = [
|
2019-07-05 17:41:41 +02:00
|
|
|
breeze-icons discount djvulibre ebook_tools kactivities karchive kbookmarks
|
2018-03-05 06:31:50 +01:00
|
|
|
kcompletion kconfig kconfigwidgets kcoreaddons kdbusaddons
|
|
|
|
kdegraphics-mobipocket kiconthemes kjs khtml kio kparts kpty kwallet
|
|
|
|
kwindowsystem libkexiv2 libspectre libzip phonon poppler qca-qt5
|
2018-04-20 16:24:00 +02:00
|
|
|
qtdeclarative qtsvg threadweaver kcrash
|
2018-03-07 02:28:18 +01:00
|
|
|
] ++ lib.optional (!stdenv.isAarch64) chmlib;
|
2020-04-27 23:39:11 +02: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
|
|
|
|
'';
|
|
|
|
|
2018-03-05 06:31:50 +01:00
|
|
|
meta = with lib; {
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "http://www.kde.org";
|
2018-03-05 06:31:50 +01:00
|
|
|
license = with licenses; [ gpl2 lgpl21 fdl12 bsd3 ];
|
2020-04-19 12:56:52 +02:00
|
|
|
maintainers = with maintainers; [ ttuegel turion ];
|
2018-03-05 06:31:50 +01:00
|
|
|
platforms = lib.platforms.linux;
|
2016-04-21 18:00:51 +02:00
|
|
|
};
|
|
|
|
}
|