From 0f564014b60862d494f713c858c1b9e1d3f81ef4 Mon Sep 17 00:00:00 2001 From: Dmitry Kalinkin Date: Tue, 29 Sep 2020 07:35:03 -0400 Subject: [PATCH] texlive: move chktex from texlive.bin.core to texlive.bin.chktex chktex binary doesn't work without its global resource file which comes in its tlType="run" package. This commit moves chktex into a separate tlType="bin" package so it is only used along with its tlType="run" counterpart. --- pkgs/tools/typesetting/tex/texlive/bin.nix | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) 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;