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.
This commit is contained in:
Dmitry Kalinkin 2020-09-29 07:35:03 -04:00
parent 7201e03a07
commit 0f564014b6
No known key found for this signature in database
GPG key ID: 5157B3EC8B2CA333

View file

@ -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;