1 { fetchurl, lib, mkDerivation, pkg-config, python3, file, bc
2 , qtbase, qtsvg, hunspell, makeWrapper #, mythes, boost
10 url = "ftp://ftp.lyx.org/pub/lyx/stable/2.3.x/${pname}-${version}.tar.xz";
11 sha256 = "sha256-Ob6IZPuGs06IMQ5w+4Dl6eKWYB8IVs8WGqCUFxcY2O0=";
16 sed '1i#include <iterator>' -i src/lyxfind.cpp
17 sed '1i#include <cstring>' -i src/insets/InsetListings.cpp
20 # LaTeX is used from $PATH, as people often want to have it with extra pkgs
21 nativeBuildInputs = [ pkg-config makeWrapper python3 qtbase ];
23 qtbase qtsvg file/*for libmagic*/ bc
29 #"--without-included-boost"
30 /* Boost is a huge dependency from which 1.4 MB of libs would be used.
31 Using internal boost stuff only increases executable by around 0.2 MB. */
32 #"--without-included-mythes" # such a small library isn't worth a separate package
35 enableParallelBuilding = true;
38 # python is run during runtime to do various tasks
40 " --prefix PATH : ${python3}/bin"
44 description = "WYSIWYM frontend for LaTeX, DocBook";
45 homepage = "http://www.lyx.org";
46 license = licenses.gpl2Plus;
47 maintainers = [ maintainers.vcunat ];
48 platforms = platforms.linux;