git.iko.soy/typeable/nixpkgs
on master help sign in
texlive: add xindy binary

Fixes #16207.

commit7a6ec0a0ee34ef8a19a0cc755cae40a780c1d7cd authorVladimír Čunát <vcunat@gmail.com> dateMon 13 Jun 2016, 15:37 (10 years ago) parent3ea8068
1 file changed+32−2
pkgs/tools/typesetting/tex/texlive-new/bin.nix+32−2
pkgs/tools/typesetting/tex/texlive-new/bin.nix+32−2
@@ -1,10 +1,10 @@
11{ stdenv, lib, fetchurl
2−, config
2+, texlive
33, zlib, bzip2, ncurses, libpng, flex, bison, libX11, libICE, xproto
44, freetype, t1lib, gd, libXaw, icu, ghostscript, ed, libXt, libXpm, libXmu, libXext
55, xextproto, perl, libSM, ruby, expat, curl, libjpeg, python, fontconfig, pkgconfig
66, poppler, libpaper, graphite2, lesstif, zziplib, harfbuzz, texinfo, potrace, gmp, mpfr
7−, xpdf, cairo, pixman, xorg
7+, xpdf, cairo, pixman, xorg, clisp
88, makeWrapper
99}:
1010
@@ -247,5 +247,35 @@ xdvi = stdenv.mkDerivation {
247247};
248248
249249
250+xindy = stdenv.mkDerivation {
251+ name = "texlive-xindy.bin-${version}";
252+
253+ inherit (common) src;
254+ prePatch = "cd utils/xindy";
255+ # hardcode clisp location
256+ postPatch = ''
257+ substituteInPlace xindy-?.?.?/user-commands/xindy.in \
258+ --replace "our \$clisp = ( \$is_windows ? 'clisp.exe' : 'clisp' ) ;" \
259+ "our \$clisp = '$(type -P clisp)';"
260+ '';
261+
262+ nativeBuildInputs = [
263+ pkgconfig perl
264+ (texlive.combine { inherit (texlive) scheme-basic cyrillic ec; })
265+ ];
266+ buildInputs = [ clisp ];
267+
268+ configureFlags = [ "--with-clisp-runtime=system" "--disable-xindy-docs" ];
269+
270+ preInstall = ''mkdir -p "$out/bin" '';
271+ # fixup various file-location errors of: lib/xindy/{xindy.mem,modules/}
272+ postInstall = ''
273+ mkdir -p "$out/lib/xindy"
274+ mv "$out"/{bin/xindy.mem,lib/xindy/}
275+ ln -s ../../share/texmf-dist/xindy/modules "$out/lib/xindy/"
276+ '';
277+};
278+
279+
250280} # un-indented
251281