Merge pull request #91699 from neilmayhew/fix/file-rename/darwin

file-rename: Fix an incorrect test that misidentifies Darwin as Windows
This commit is contained in:
Niklas Hambüchen
2020-06-28 02:23:35 +02:00
committed by GitHub

View File

@@ -11,6 +11,12 @@ perlPackages.buildPerlPackage {
nativeBuildInputs = [ makeWrapper ];
# Fix an incorrect platform test that misidentifies Darwin as Windows
postPatch = ''
substituteInPlace Makefile.PL \
--replace '/win/i' '/MSWin32/'
'';
postInstall = ''
wrapProgram $out/bin/rename \
--prefix PERL5LIB : $out/${perlPackages.perl.libPrefix}