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:
parent
a3013da6a2
commit
1d0a930d27
|
@ -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}
|
||||
|
|
Loading…
Reference in a new issue