mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-17 14:19:58 +03:00
bad4b37c7e
I have removed myself as maintainer from those packages that: * Have at least one other maintainer * Are outside of my actual expertise, i.e. I wouldn't really know how to fix them if they broke
42 lines
1.6 KiB
Nix
42 lines
1.6 KiB
Nix
{ stdenv, mkDerivation, lib
|
|
, 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
|
|
, withSpeech ? true, qtspeech, qtx11extras
|
|
}:
|
|
|
|
mkDerivation {
|
|
pname = "okular";
|
|
|
|
nativeBuildInputs = [ extra-cmake-modules kdoctools ];
|
|
|
|
buildInputs = [
|
|
breeze-icons 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 chmlib qtx11extras
|
|
] ++ lib.optional withSpeech qtspeech;
|
|
|
|
# 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
|
|
'';
|
|
|
|
cmakeFlags = lib.optional (!withSpeech) "-DFORCE_NOT_REQUIRED_DEPENDENCIES=Qt5TextToSpeech";
|
|
|
|
meta = with lib; {
|
|
homepage = "http://www.kde.org";
|
|
description = "KDE document viewer";
|
|
license = with licenses; [ gpl2Plus lgpl21Plus fdl12Plus bsd3 ];
|
|
maintainers = with maintainers; [ ttuegel ];
|
|
platforms = lib.platforms.linux;
|
|
};
|
|
}
|