From 7a6ec0a0ee34ef8a19a0cc755cae40a780c1d7cd Mon Sep 17 00:00:00 2001 From: Vladimír Čunát Date: Mon, 13 Jun 2016 15:37:25 +0200 Subject: texlive: add xindy binary Fixes #16207. --- pkgs/tools/typesetting/tex/texlive-new/bin.nix | 34 ++++++++++++++++++++++++-- 1 file changed, 32 insertions(+), 2 deletions(-) (limited to 'pkgs/tools/typesetting') diff --git a/pkgs/tools/typesetting/tex/texlive-new/bin.nix b/pkgs/tools/typesetting/tex/texlive-new/bin.nix index f833cc2f82b1..403bea2783d8 100644 --- a/pkgs/tools/typesetting/tex/texlive-new/bin.nix +++ b/pkgs/tools/typesetting/tex/texlive-new/bin.nix @@ -1,10 +1,10 @@ { stdenv, lib, fetchurl -, config +, texlive , zlib, bzip2, ncurses, libpng, flex, bison, libX11, libICE, xproto , freetype, t1lib, gd, libXaw, icu, ghostscript, ed, libXt, libXpm, libXmu, libXext , xextproto, perl, libSM, ruby, expat, curl, libjpeg, python, fontconfig, pkgconfig , poppler, libpaper, graphite2, lesstif, zziplib, harfbuzz, texinfo, potrace, gmp, mpfr -, xpdf, cairo, pixman, xorg +, xpdf, cairo, pixman, xorg, clisp , makeWrapper }: @@ -247,5 +247,35 @@ xdvi = stdenv.mkDerivation { }; +xindy = stdenv.mkDerivation { + name = "texlive-xindy.bin-${version}"; + + inherit (common) src; + prePatch = "cd utils/xindy"; + # hardcode clisp location + postPatch = '' + substituteInPlace xindy-?.?.?/user-commands/xindy.in \ + --replace "our \$clisp = ( \$is_windows ? 'clisp.exe' : 'clisp' ) ;" \ + "our \$clisp = '$(type -P clisp)';" + ''; + + nativeBuildInputs = [ + pkgconfig perl + (texlive.combine { inherit (texlive) scheme-basic cyrillic ec; }) + ]; + buildInputs = [ clisp ]; + + configureFlags = [ "--with-clisp-runtime=system" "--disable-xindy-docs" ]; + + preInstall = ''mkdir -p "$out/bin" ''; + # fixup various file-location errors of: lib/xindy/{xindy.mem,modules/} + postInstall = '' + mkdir -p "$out/lib/xindy" + mv "$out"/{bin/xindy.mem,lib/xindy/} + ln -s ../../share/texmf-dist/xindy/modules "$out/lib/xindy/" + ''; +}; + + } # un-indented -- cgit 1.4.1