diff options
author | Vladimír Čunát <vcunat@gmail.com> | 2016-06-13 15:37:25 +0200 |
---|---|---|
committer | Vladimír Čunát <vcunat@gmail.com> | 2016-06-16 12:53:51 +0200 |
commit | 7a6ec0a0ee34ef8a19a0cc755cae40a780c1d7cd (patch) | |
tree | 27e1bbdc1f1c72febf692776653bc3165d395b61 /pkgs/tools/typesetting | |
parent | 3ea80681813553bae50d5c411869f94d2ca29373 (diff) | |
download | nixlib-7a6ec0a0ee34ef8a19a0cc755cae40a780c1d7cd.tar nixlib-7a6ec0a0ee34ef8a19a0cc755cae40a780c1d7cd.tar.gz nixlib-7a6ec0a0ee34ef8a19a0cc755cae40a780c1d7cd.tar.bz2 nixlib-7a6ec0a0ee34ef8a19a0cc755cae40a780c1d7cd.tar.lz nixlib-7a6ec0a0ee34ef8a19a0cc755cae40a780c1d7cd.tar.xz nixlib-7a6ec0a0ee34ef8a19a0cc755cae40a780c1d7cd.tar.zst nixlib-7a6ec0a0ee34ef8a19a0cc755cae40a780c1d7cd.zip |
texlive: add xindy binary
Fixes #16207.
Diffstat (limited to 'pkgs/tools/typesetting')
-rw-r--r-- | pkgs/tools/typesetting/tex/texlive-new/bin.nix | 34 |
1 files changed, 32 insertions, 2 deletions
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 |