1 { lib, stdenv, fetchurl, perl, perlPackages }:
3 perlPackages.buildPerlPackage {
8 url = "mirror://cpan/authors/id/R/RM/RMBARKER/File-Rename-0.20.tar.gz";
9 sha256 = "1cf6xx2hiy1xalp35fh8g73j67r0w0g66jpcbc6971x9jbm7bvjy";
12 # Fix an incorrect platform test that misidentifies Darwin as Windows
14 substituteInPlace Makefile.PL \
15 --replace '/win/i' '/MSWin32/'
19 substituteInPlace $out/bin/rename \
20 --replace "#!${perl}/bin/perl" "#!${perl}/bin/perl -I $out/${perl.libPrefix}"
23 doCheck = !stdenv.hostPlatform.isDarwin;
26 description = "Perl extension for renaming multiple files";
27 license = licenses.artistic1;
28 maintainers = with maintainers; [ peterhoeg ];
29 mainProgram = "rename";