perlPackages.LaTeXML: patch shebangs to use full path to perl on darwin
This commit is contained in:
parent
2622548c13
commit
ca5424b750
@ -10710,14 +10710,16 @@ let
|
|||||||
url = "mirror://cpan/authors/id/B/BR/BRMILLER/LaTeXML-0.8.4.tar.gz";
|
url = "mirror://cpan/authors/id/B/BR/BRMILLER/LaTeXML-0.8.4.tar.gz";
|
||||||
sha256 = "92599b45fb587ac14b2ba9cc84b85d9ddc2deaf1cbdc2e89e7a6559e1fbb34cc";
|
sha256 = "92599b45fb587ac14b2ba9cc84b85d9ddc2deaf1cbdc2e89e7a6559e1fbb34cc";
|
||||||
};
|
};
|
||||||
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
|
doCheck = false; # epub test fails
|
||||||
postInstall = ''
|
nativeBuildInputs = stdenv.lib.optional stdenv.isDarwin shortenPerlShebang;
|
||||||
shortenPerlShebang $out/bin/latexml
|
# shebangs need to be patched before executables are copied to $out
|
||||||
shortenPerlShebang $out/bin/latexmlc
|
preBuild = ''
|
||||||
shortenPerlShebang $out/bin/latexmlfind
|
patchShebangs bin/
|
||||||
shortenPerlShebang $out/bin/latexmlmath
|
'' + stdenv.lib.optionalString stdenv.isDarwin ''
|
||||||
shortenPerlShebang $out/bin/latexmlpost
|
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…
x
Reference in New Issue
Block a user