mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 23:03:40 +01:00
texlive: add xdvi binary part (fixes #11816)
It seems to work fine for me now, after adding dependency on metafont.
This commit is contained in:
parent
e0d6e79f6c
commit
e16d3d0d8a
2 changed files with 29 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -84,6 +84,10 @@ let
|
|||
latex = orig.latex // {
|
||||
deps = removeAttrs orig.latex.deps [ "luatex" ];
|
||||
};
|
||||
|
||||
xdvi = orig.xdvi // { # it seems to need it to transform fonts
|
||||
deps = (orig.xdvi.deps or {}) // { inherit (tl) metafont; };
|
||||
};
|
||||
}; # overrides
|
||||
|
||||
# tl =
|
||||
|
|
Loading…
Reference in a new issue