mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 23:03:40 +01:00
Merge pull request #105271 from veprbl/pr/LaTeXML_darwin_fix
perlPackages.LaTeXML: patch shebangs to use full path to perl on darwin
This commit is contained in:
commit
aed3b7cf54
1 changed files with 12 additions and 8 deletions
|
@ -10710,14 +10710,18 @@ let
|
||||||
url = "mirror://cpan/authors/id/B/BR/BRMILLER/${pname}-${version}.tar.gz";
|
url = "mirror://cpan/authors/id/B/BR/BRMILLER/${pname}-${version}.tar.gz";
|
||||||
sha256 = "0dr69rgl4si9i9ww1r4dc7apgb7y6f7ih808w4g0924cvz823s0x";
|
sha256 = "0dr69rgl4si9i9ww1r4dc7apgb7y6f7ih808w4g0924cvz823s0x";
|
||||||
};
|
};
|
||||||
propagatedBuildInputs = [ shortenPerlShebang ArchiveZip DBFile FileWhich IOString ImageSize JSONXS LWP ParseRecDescent PodParser TextUnidecode XMLLibXSLT ];
|
propagatedBuildInputs = [ ArchiveZip DBFile FileWhich IOString ImageSize JSONXS LWP ParseRecDescent PodParser TextUnidecode XMLLibXSLT ];
|
||||||
doCheck = false; # epub test fails
|
preCheck = ''
|
||||||
postInstall = ''
|
rm t/931_epub.t # epub test fails
|
||||||
shortenPerlShebang $out/bin/latexml
|
'';
|
||||||
shortenPerlShebang $out/bin/latexmlc
|
nativeBuildInputs = stdenv.lib.optional stdenv.isDarwin shortenPerlShebang;
|
||||||
shortenPerlShebang $out/bin/latexmlfind
|
# shebangs need to be patched before executables are copied to $out
|
||||||
shortenPerlShebang $out/bin/latexmlmath
|
preBuild = ''
|
||||||
shortenPerlShebang $out/bin/latexmlpost
|
patchShebangs bin/
|
||||||
|
'' + stdenv.lib.optionalString stdenv.isDarwin ''
|
||||||
|
for file in bin/*; do
|
||||||
|
shortenPerlShebang "$file"
|
||||||
|
done
|
||||||
'';
|
'';
|
||||||
meta = {
|
meta = {
|
||||||
description = "Transforms TeX and LaTeX into XML/HTML/MathML";
|
description = "Transforms TeX and LaTeX into XML/HTML/MathML";
|
||||||
|
|
Loading…
Reference in a new issue