diff --git a/pkgs/tools/typesetting/tex/texlive/bin.nix b/pkgs/tools/typesetting/tex/texlive/bin.nix index 1a71ae04d49..098ecb76d7a 100644 --- a/pkgs/tools/typesetting/tex/texlive/bin.nix +++ b/pkgs/tools/typesetting/tex/texlive/bin.nix @@ -145,6 +145,7 @@ core = stdenv.mkDerivation rec { configureFlags = common.configureFlags ++ [ "--without-x" ] # disable xdvik and xpdfopen ++ map (what: "--disable-${what}") ([ + "chktex" "dvisvgm" "dvipng" # ghostscript dependency "luatex" "luajittex" "mp" "pmp" "upmp" "mf" # cairo would bring in X and more "xetex" "bibtexu" "bibtex8" "bibtex-x" "upmendex" # ICU isn't small @@ -271,6 +272,24 @@ core-big = stdenv.mkDerivation { #TODO: upmendex }; +chktex = stdenv.mkDerivation { + pname = "texlive-chktex.bin"; + inherit version; + + inherit (common) src; + + nativeBuildInputs = [ pkgconfig ]; + buildInputs = [ core/*kpathsea*/ ]; + + preConfigure = "cd texk/chktex"; + + configureFlags = common.configureFlags + ++ [ "--with-system-kpathsea" ]; + + enableParallelBuilding = true; +}; + + dvisvgm = stdenv.mkDerivation { pname = "texlive-dvisvgm.bin"; inherit version;