Merge pull request #66446 from bdesham/updated-boronine-perl-darwin-fix

Updated fix for Perl programs on Darwin
This commit is contained in:
Dmitry Kalinkin
2019-08-19 19:18:19 -04:00
committed by GitHub
6 changed files with 155 additions and 8 deletions

View File

@@ -1,4 +1,4 @@
{ stdenv, perlPackages, texlive }:
{ stdenv, perlPackages, shortenPerlShebang, texlive }:
let
biberSource = stdenv.lib.head (builtins.filter (p: p.tlType == "source") texlive.biber.pkgs);
@@ -21,6 +21,11 @@ perlPackages.buildPerlModule {
TestDifferences
PerlIOutf8_strict
];
nativeBuildInputs = stdenv.lib.optional stdenv.isDarwin shortenPerlShebang;
postInstall = stdenv.lib.optionalString stdenv.isDarwin ''
shortenPerlShebang $out/bin/biber
'';
meta = with stdenv.lib; {
description = "Backend for BibLaTeX";

View File

@@ -5,7 +5,7 @@
, perl, perlPackages, pkgconfig, autoreconfHook
, poppler, libpaper, graphite2, zziplib, harfbuzz, potrace, gmp, mpfr
, cairo, pixman, xorg, clisp, biber
, makeWrapper
, makeWrapper, shortenPerlShebang
}:
# Useful resource covering build options:
@@ -292,6 +292,7 @@ latexindent = perlPackages.buildPerlPackage rec {
outputs = [ "out" ];
nativeBuildInputs = stdenv.lib.optional stdenv.isDarwin shortenPerlShebang;
propagatedBuildInputs = with perlPackages; [ FileHomeDir LogDispatch LogLog4perl UnicodeLineBreak YAMLTiny ];
postPatch = ''
@@ -308,6 +309,8 @@ latexindent = perlPackages.buildPerlPackage rec {
install -D ./scripts/latexindent/latexindent.pl "$out"/bin/latexindent
mkdir -p "$out"/${perl.libPrefix}
cp -r ./scripts/latexindent/LatexIndent "$out"/${perl.libPrefix}/
'' + stdenv.lib.optionalString stdenv.isDarwin ''
shortenPerlShebang "$out"/bin/latexindent
'';
};