Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 113 lines 1.9 kB view raw
1{ 2 mkDerivation, 3 lib, 4 extra-cmake-modules, 5 kdoctools, 6 breeze-icons, 7 chmlib, 8 discount, 9 djvulibre, 10 ebook_tools, 11 kactivities, 12 karchive, 13 kbookmarks, 14 kcompletion, 15 kconfig, 16 kconfigwidgets, 17 kcoreaddons, 18 kdbusaddons, 19 kdegraphics-mobipocket, 20 kiconthemes, 21 kjs, 22 khtml, 23 kio, 24 kparts, 25 kpty, 26 kpurpose, 27 kwallet, 28 kwindowsystem, 29 libkexiv2, 30 libspectre, 31 libzip, 32 phonon, 33 poppler, 34 qca-qt5, 35 qtdeclarative, 36 qtsvg, 37 threadweaver, 38 kcrash, 39 withSpeech ? true, 40 qtspeech, 41 qtx11extras, 42}: 43 44mkDerivation { 45 pname = "okular"; 46 47 nativeBuildInputs = [ 48 extra-cmake-modules 49 kdoctools 50 ]; 51 52 buildInputs = [ 53 breeze-icons 54 discount 55 djvulibre 56 ebook_tools 57 kactivities 58 karchive 59 kbookmarks 60 kcompletion 61 kconfig 62 kconfigwidgets 63 kcoreaddons 64 kdbusaddons 65 kdegraphics-mobipocket 66 kiconthemes 67 kjs 68 khtml 69 kio 70 kparts 71 kpty 72 kpurpose 73 kwallet 74 kwindowsystem 75 libkexiv2 76 libspectre 77 libzip 78 phonon 79 poppler 80 qca-qt5 81 qtdeclarative 82 qtsvg 83 threadweaver 84 kcrash 85 chmlib 86 qtx11extras 87 ] 88 ++ lib.optional withSpeech qtspeech; 89 90 # InitialPreference values are too high and end up making okular 91 # default for anything considered text/plain. Resetting to 1, which 92 # is the default. 93 postPatch = '' 94 substituteInPlace generators/txt/okularApplication_txt.desktop \ 95 --replace InitialPreference=3 InitialPreference=1 96 ''; 97 98 cmakeFlags = lib.optional (!withSpeech) "-DFORCE_NOT_REQUIRED_DEPENDENCIES=Qt5TextToSpeech"; 99 100 meta = with lib; { 101 homepage = "http://www.kde.org"; 102 description = "KDE document viewer"; 103 mainProgram = "okular"; 104 license = with licenses; [ 105 gpl2Plus 106 lgpl21Plus 107 fdl12Plus 108 bsd3 109 ]; 110 maintainers = with maintainers; [ ttuegel ]; 111 platforms = lib.platforms.linux; 112 }; 113}