summary refs log tree commit diff
path: root/pkgs/tools/typesetting/tex
diff options
context:
space:
mode:
authorDmitry Kalinkin <dmitry.kalinkin@gmail.com>2020-09-29 07:35:03 -0400
committerDmitry Kalinkin <dmitry.kalinkin@gmail.com>2020-09-29 07:35:03 -0400
commit0f564014b60862d494f713c858c1b9e1d3f81ef4 (patch)
tree3d240e6b4aac2cba802b192c4acfcf1d678dcccc /pkgs/tools/typesetting/tex
parent7201e03a07339bdaac3e37ba6221b86743032712 (diff)
downloadnixpkgs-0f564014b60862d494f713c858c1b9e1d3f81ef4.tar
nixpkgs-0f564014b60862d494f713c858c1b9e1d3f81ef4.tar.gz
nixpkgs-0f564014b60862d494f713c858c1b9e1d3f81ef4.tar.bz2
nixpkgs-0f564014b60862d494f713c858c1b9e1d3f81ef4.tar.lz
nixpkgs-0f564014b60862d494f713c858c1b9e1d3f81ef4.tar.xz
nixpkgs-0f564014b60862d494f713c858c1b9e1d3f81ef4.tar.zst
nixpkgs-0f564014b60862d494f713c858c1b9e1d3f81ef4.zip
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.
Diffstat (limited to 'pkgs/tools/typesetting/tex')
-rw-r--r--pkgs/tools/typesetting/tex/texlive/bin.nix19
1 files changed, 19 insertions, 0 deletions
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;