texlive: fix too-long shebang line on Darwin for latexinent
This commit is contained in:
parent
8036b0f015
commit
430f0e14d3
@ -5,7 +5,7 @@
|
|||||||
, perl, perlPackages, pkgconfig, autoreconfHook
|
, perl, perlPackages, pkgconfig, autoreconfHook
|
||||||
, poppler, libpaper, graphite2, zziplib, harfbuzz, potrace, gmp, mpfr
|
, poppler, libpaper, graphite2, zziplib, harfbuzz, potrace, gmp, mpfr
|
||||||
, cairo, pixman, xorg, clisp, biber
|
, cairo, pixman, xorg, clisp, biber
|
||||||
, makeWrapper
|
, makeWrapper, shortenPerlShebang
|
||||||
}:
|
}:
|
||||||
|
|
||||||
# Useful resource covering build options:
|
# Useful resource covering build options:
|
||||||
@ -292,6 +292,7 @@ latexindent = perlPackages.buildPerlPackage rec {
|
|||||||
|
|
||||||
outputs = [ "out" ];
|
outputs = [ "out" ];
|
||||||
|
|
||||||
|
nativeBuildInputs = stdenv.lib.optional stdenv.isDarwin shortenPerlShebang;
|
||||||
propagatedBuildInputs = with perlPackages; [ FileHomeDir LogDispatch LogLog4perl UnicodeLineBreak YAMLTiny ];
|
propagatedBuildInputs = with perlPackages; [ FileHomeDir LogDispatch LogLog4perl UnicodeLineBreak YAMLTiny ];
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
@ -308,6 +309,8 @@ latexindent = perlPackages.buildPerlPackage rec {
|
|||||||
install -D ./scripts/latexindent/latexindent.pl "$out"/bin/latexindent
|
install -D ./scripts/latexindent/latexindent.pl "$out"/bin/latexindent
|
||||||
mkdir -p "$out"/${perl.libPrefix}
|
mkdir -p "$out"/${perl.libPrefix}
|
||||||
cp -r ./scripts/latexindent/LatexIndent "$out"/${perl.libPrefix}/
|
cp -r ./scripts/latexindent/LatexIndent "$out"/${perl.libPrefix}/
|
||||||
|
'' + stdenv.lib.optionalString stdenv.isDarwin ''
|
||||||
|
shortenPerlShebang "$out"/bin/latexindent
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user