at master 62 lines 1.4 kB view raw
1{ 2 fetchurl, 3 lib, 4 mkDerivation, 5 pkg-config, 6 python3, 7 file, 8 bc, 9 qtbase, 10 qtsvg, 11 hunspell, 12 makeWrapper, # , mythes, boost 13}: 14 15mkDerivation rec { 16 version = "2.4.4"; 17 pname = "lyx"; 18 19 src = fetchurl { 20 url = "ftp://ftp.lyx.org/pub/lyx/stable/2.4.x/${pname}-${version}.tar.xz"; 21 hash = "sha256-/6zTdIDzIPPz+PMERf5AiX6d9EyU7oe6BBPjZAhvS5A="; 22 }; 23 24 # LaTeX is used from $PATH, as people often want to have it with extra pkgs 25 nativeBuildInputs = [ 26 pkg-config 27 makeWrapper 28 python3 29 qtbase 30 ]; 31 buildInputs = [ 32 qtbase 33 qtsvg 34 file # for libmagic 35 bc 36 hunspell # enchant 37 ]; 38 39 configureFlags = [ 40 "--enable-qt5" 41 #"--without-included-boost" 42 /* 43 Boost is a huge dependency from which 1.4 MB of libs would be used. 44 Using internal boost stuff only increases executable by around 0.2 MB. 45 */ 46 #"--without-included-mythes" # such a small library isn't worth a separate package 47 ]; 48 49 enableParallelBuilding = true; 50 doCheck = true; 51 52 # python is run during runtime to do various tasks 53 qtWrapperArgs = [ " --prefix PATH : ${python3}/bin" ]; 54 55 meta = with lib; { 56 description = "WYSIWYM frontend for LaTeX, DocBook"; 57 homepage = "https://www.lyx.org"; 58 license = licenses.gpl2Plus; 59 maintainers = [ maintainers.vcunat ]; 60 platforms = platforms.linux; 61 }; 62}