texlive: add xdvi binary part (fixes #11816)

It seems to work fine for me now, after adding dependency on metafont.

+29
+25
pkgs/tools/typesetting/tex/texlive-new/bin.nix
··· 8 , makeWrapper 9 }: 10 11 12 let 13 withSystemLibs = map (libname: "--with-system-${libname}"); ··· 218 ++ [ "--with-system-kpathsea" "--with-system-icu" ]; 219 220 enableParallelBuilding = true; 221 }; 222 223
··· 8 , makeWrapper 9 }: 10 11 + # Useful resource covering build options: 12 + # http://tug.org/texlive/doc/tlbuild.html 13 14 let 15 withSystemLibs = map (libname: "--with-system-${libname}"); ··· 220 ++ [ "--with-system-kpathsea" "--with-system-icu" ]; 221 222 enableParallelBuilding = true; 223 + }; 224 + 225 + 226 + xdvi = stdenv.mkDerivation { 227 + name = "texlive-xdvi.bin-${version}"; 228 + 229 + inherit (common) src; 230 + 231 + buildInputs = [ pkgconfig core/*kpathsea*/ freetype ghostscript ] 232 + ++ (with xorg; [ libX11 libXaw libXi libXpm libXmu libXaw libXext libXfixes ]); 233 + 234 + preConfigure = "cd texk/xdvik"; 235 + 236 + configureFlags = common.configureFlags 237 + ++ [ "--with-system-kpathsea" "--with-system-libgs" ]; 238 + 239 + enableParallelBuilding = true; 240 + 241 + postInstall = '' 242 + substituteInPlace "$out/bin/xdvi" \ 243 + --replace "exec xdvi-xaw" "exec '$out/bin/xdvi-xaw'" 244 + ''; 245 + # TODO: it's suspicious that mktexpk generates fonts into ~/.texlive2014 246 }; 247 248
+4
pkgs/tools/typesetting/tex/texlive-new/default.nix
··· 84 latex = orig.latex // { 85 deps = removeAttrs orig.latex.deps [ "luatex" ]; 86 }; 87 }; # overrides 88 89 # tl =
··· 84 latex = orig.latex // { 85 deps = removeAttrs orig.latex.deps [ "luatex" ]; 86 }; 87 + 88 + xdvi = orig.xdvi // { # it seems to need it to transform fonts 89 + deps = (orig.xdvi.deps or {}) // { inherit (tl) metafont; }; 90 + }; 91 }; # overrides 92 93 # tl =