perlPackages.DevelNYTProf: 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-16 19:37:43 +00:00
parent b8878b950f
commit c3ee3be722

@ -6144,6 +6144,10 @@ let
license = with lib.licenses; [ artistic1 gpl1Plus ];
};
buildInputs = [ TestDifferences ];
nativeBuildInputs = lib.optional stdenv.isDarwin shortenPerlShebang;
postInstall = lib.optionalString stdenv.isDarwin ''
shortenPerlShebang $out/bin/*
'';
};
DevelOverloadInfo = buildPerlPackage {