perlPackages.PerlTidy: use shortenPerlShebang on darwin

The shebang must be shortened to make the executable work on macOS.
This commit is contained in:
Vincenzo Mantova 2021-02-15 20:20:51 +00:00
parent 69d5df6303
commit 8cb0cd4a2f

View File

@ -16630,6 +16630,10 @@ let
description = "Indent and reformat perl scripts";
license = lib.licenses.gpl2Plus;
};
nativeBuildInputs = lib.optional stdenv.isDarwin shortenPerlShebang;
postInstall = lib.optionalString stdenv.isDarwin ''
shortenPerlShebang $out/bin/perltidy
'';
};
PHPSerialization = buildPerlPackage {