8ac5e011d6
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
26 lines
675 B
Nix
26 lines
675 B
Nix
{ stdenv, fetchurl, perlPackages, makeWrapper }:
|
|
|
|
perlPackages.buildPerlPackage {
|
|
pname = "File-Rename";
|
|
version = "0.20";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://cpan/authors/id/R/RM/RMBARKER/File-Rename-0.20.tar.gz";
|
|
sha256 = "1cf6xx2hiy1xalp35fh8g73j67r0w0g66jpcbc6971x9jbm7bvjy";
|
|
};
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
postInstall = ''
|
|
wrapProgram $out/bin/rename \
|
|
--prefix PERL5LIB : $out/${perlPackages.perl.libPrefix}
|
|
'';
|
|
|
|
doCheck = !stdenv.isDarwin;
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "Perl extension for renaming multiple files";
|
|
license = licenses.artistic1;
|
|
maintainers = with maintainers; [ peterhoeg ];
|
|
};
|
|
}
|