2018-02-04 13:32:09 +00:00
|
|
|
{ stdenv, fetchurl, perlPackages, makeWrapper }:
|
|
|
|
|
2019-06-20 14:07:56 +01:00
|
|
|
perlPackages.buildPerlPackage {
|
|
|
|
pname = "File-Rename";
|
|
|
|
version = "0.20";
|
2018-02-04 13:32:09 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2020-04-01 02:11:51 +01:00
|
|
|
url = "mirror://cpan/authors/id/R/RM/RMBARKER/File-Rename-0.20.tar.gz";
|
2018-02-04 13:32:09 +00:00
|
|
|
sha256 = "1cf6xx2hiy1xalp35fh8g73j67r0w0g66jpcbc6971x9jbm7bvjy";
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
wrapProgram $out/bin/rename \
|
2018-12-15 03:50:31 +00:00
|
|
|
--prefix PERL5LIB : $out/${perlPackages.perl.libPrefix}
|
2018-02-04 13:32:09 +00:00
|
|
|
'';
|
|
|
|
|
2019-04-24 03:38:29 +01:00
|
|
|
doCheck = !stdenv.isDarwin;
|
|
|
|
|
2018-02-04 13:32:09 +00:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Perl extension for renaming multiple files";
|
|
|
|
license = licenses.artistic1;
|
2018-02-12 15:30:27 +00:00
|
|
|
maintainers = with maintainers; [ peterhoeg ];
|
2018-02-04 13:32:09 +00:00
|
|
|
};
|
|
|
|
}
|