perlPackages.EmailSender: Fix for macOS

Use shortenPerlShebang to avoid the limit macOS puts on the length of
shebang.
This commit is contained in:
Hamish Mackenzie 2020-01-07 12:09:39 +13:00
parent e1ce60ae7a
commit 940c46a924
No known key found for this signature in database
GPG Key ID: A9225633A5555FDD

View File

@ -6102,9 +6102,13 @@ let
};
buildInputs = [ CaptureTiny ];
propagatedBuildInputs = [ EmailAbstract EmailAddress MooXTypesMooseLike SubExporter Throwable TryTiny ];
nativeBuildInputs = stdenv.lib.optional stdenv.isDarwin shortenPerlShebang;
postPatch = ''
patchShebangs --build util
'';
preCheck = stdenv.lib.optionalString stdenv.isDarwin ''
shortenPerlShebang util/sendmail
'';
meta = {
homepage = https://github.com/rjbs/Email-Sender;
description = "A library for sending email";