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
commit aec558774b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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}