@@ -10710,14 +10710,18 @@ let
1071010710 url = "mirror://cpan/authors/id/B/BR/BRMILLER/${pname}-${version}.tar.gz";
1071110711 sha256 = "0dr69rgl4si9i9ww1r4dc7apgb7y6f7ih808w4g0924cvz823s0x";
1071210712 };
10713− propagatedBuildInputs = [ shortenPerlShebang ArchiveZip DBFile FileWhich IOString ImageSize JSONXS LWP ParseRecDescent PodParser TextUnidecode XMLLibXSLT ];
10714− doCheck = false; # epub test fails
10715− postInstall = ''
10716− shortenPerlShebang $out/bin/latexml
10717− shortenPerlShebang $out/bin/latexmlc
10718− shortenPerlShebang $out/bin/latexmlfind
10719− shortenPerlShebang $out/bin/latexmlmath
10720− shortenPerlShebang $out/bin/latexmlpost
10713+ propagatedBuildInputs = [ ArchiveZip DBFile FileWhich IOString ImageSize JSONXS LWP ParseRecDescent PodParser TextUnidecode XMLLibXSLT ];
10714+ preCheck = ''
10715+ rm t/931_epub.t # epub test fails
10716+ '';
10717+ nativeBuildInputs = stdenv.lib.optional stdenv.isDarwin shortenPerlShebang;
10718+ # shebangs need to be patched before executables are copied to $out
10719+ preBuild = ''
10720+ patchShebangs bin/
10721+ '' + stdenv.lib.optionalString stdenv.isDarwin ''
10722+ for file in bin/*; do
10723+ shortenPerlShebang "$file"
10724+ done
1072110725 '';
1072210726 meta = {
1072310727 description = "Transforms TeX and LaTeX into XML/HTML/MathML";