diff options
Diffstat (limited to 'nixpkgs/pkgs/tools/filesystems/file-rename/default.nix')
-rw-r--r-- | nixpkgs/pkgs/tools/filesystems/file-rename/default.nix | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/tools/filesystems/file-rename/default.nix b/nixpkgs/pkgs/tools/filesystems/file-rename/default.nix index f9b6a941f68..588295f7791 100644 --- a/nixpkgs/pkgs/tools/filesystems/file-rename/default.nix +++ b/nixpkgs/pkgs/tools/filesystems/file-rename/default.nix @@ -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} |