diff options
author | Vladimír Čunát <vcunat@gmail.com> | 2015-12-22 16:51:46 +0100 |
---|---|---|
committer | Vladimír Čunát <vcunat@gmail.com> | 2015-12-22 16:55:32 +0100 |
commit | e16d3d0d8ac896f0afa7636f24935fcf31d7553e (patch) | |
tree | e5dd4a24392522bb88658976ae3a4646120dc9f2 /pkgs/tools/typesetting/tex/texlive-new/bin.nix | |
parent | e0d6e79f6c9e1bcd3ff8e516a91e3655a782440b (diff) | |
download | nixpkgs-e16d3d0d8ac896f0afa7636f24935fcf31d7553e.tar nixpkgs-e16d3d0d8ac896f0afa7636f24935fcf31d7553e.tar.gz nixpkgs-e16d3d0d8ac896f0afa7636f24935fcf31d7553e.tar.bz2 nixpkgs-e16d3d0d8ac896f0afa7636f24935fcf31d7553e.tar.lz nixpkgs-e16d3d0d8ac896f0afa7636f24935fcf31d7553e.tar.xz nixpkgs-e16d3d0d8ac896f0afa7636f24935fcf31d7553e.tar.zst nixpkgs-e16d3d0d8ac896f0afa7636f24935fcf31d7553e.zip |
texlive: add xdvi binary part (fixes #11816)
It seems to work fine for me now, after adding dependency on metafont.
Diffstat (limited to 'pkgs/tools/typesetting/tex/texlive-new/bin.nix')
-rw-r--r-- | pkgs/tools/typesetting/tex/texlive-new/bin.nix | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/pkgs/tools/typesetting/tex/texlive-new/bin.nix b/pkgs/tools/typesetting/tex/texlive-new/bin.nix index 677e64c57dc..431f3926a13 100644 --- a/pkgs/tools/typesetting/tex/texlive-new/bin.nix +++ b/pkgs/tools/typesetting/tex/texlive-new/bin.nix @@ -8,6 +8,8 @@ , makeWrapper }: +# Useful resource covering build options: +# http://tug.org/texlive/doc/tlbuild.html let withSystemLibs = map (libname: "--with-system-${libname}"); @@ -221,5 +223,28 @@ bibtex8 = stdenv.mkDerivation { }; +xdvi = stdenv.mkDerivation { + name = "texlive-xdvi.bin-${version}"; + + inherit (common) src; + + buildInputs = [ pkgconfig core/*kpathsea*/ freetype ghostscript ] + ++ (with xorg; [ libX11 libXaw libXi libXpm libXmu libXaw libXext libXfixes ]); + + preConfigure = "cd texk/xdvik"; + + configureFlags = common.configureFlags + ++ [ "--with-system-kpathsea" "--with-system-libgs" ]; + + enableParallelBuilding = true; + + postInstall = '' + substituteInPlace "$out/bin/xdvi" \ + --replace "exec xdvi-xaw" "exec '$out/bin/xdvi-xaw'" + ''; + # TODO: it's suspicious that mktexpk generates fonts into ~/.texlive2014 +}; + + } # un-indented |