3
0
Fork 0
forked from mirrors/nixpkgs

file-rename: Fix an incorrect platform test that misidentifies Darwin as Windows

This causes the script to be installed as `file-rename` instead of `rename` like
it is on other Unix systems. This in turn causes `wrapProgram` to fail when
building because it expects the wrapped program to be called `rename`.
This commit is contained in:
Neil Mayhew 2020-06-27 17:45:28 -06:00
parent a3013da6a2
commit 1d0a930d27

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}