1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-01 01:51:24 +00:00

Merge pull request #118743 from xworld21/combine-latexml

perlPackages.LaTeXML: make into a texlive package
This commit is contained in:
Dmitry Kalinkin 2021-06-20 15:33:29 -04:00 committed by GitHub
commit de7ff2caf7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -11108,11 +11108,13 @@ let
url = "mirror://cpan/authors/id/B/BR/BRMILLER/${pname}-${version}.tar.gz";
sha256 = "0dr69rgl4si9i9ww1r4dc7apgb7y6f7ih808w4g0924cvz823s0x";
};
outputs = [ "out" "tex" ];
propagatedBuildInputs = [ ArchiveZip DBFile FileWhich IOString ImageSize JSONXS LWP ParseRecDescent PerlMagick PodParser TextUnidecode XMLLibXSLT ];
preCheck = ''
rm t/931_epub.t # epub test fails
'';
nativeBuildInputs = [ pkgs.makeWrapper ] ++ lib.optional stdenv.isDarwin shortenPerlShebang;
makeMakerFlags = "TEXMF=\${tex} NOMKTEXLSR";
# shebangs need to be patched before executables are copied to $out
preBuild = ''
patchShebangs bin/
@ -11129,7 +11131,13 @@ let
'';
meta = {
description = "Transforms TeX and LaTeX into XML/HTML/MathML";
license = lib.licenses.free;
homepage = "https://dlmf.nist.gov/LaTeXML/";
license = lib.licenses.publicDomain;
maintainers = with maintainers; [ xworld21 ];
};
passthru = {
tlType = "run";
pkgs = [ LaTeXML.tex ];
};
};