nixpkgs/pkgs/tools/filesystems/file-rename/default.nix
Ryan Mulligan 220618ef9c perlPackages: remove search.cpan.org; add metacpan.org default homepage
https://www.perl.com/article/saying-goodbye-to-search-cpan-org/

maybe one operation less

..with unifying recursiveUpdate and first //

although not tested

fix whitespace
2018-07-14 18:49:00 -07:00

24 lines
612 B
Nix

{ stdenv, fetchurl, perlPackages, makeWrapper }:
perlPackages.buildPerlPackage rec {
name = "File-Rename-0.20";
src = fetchurl {
url = "mirror://cpan/authors/id/R/RM/RMBARKER/${name}.tar.gz";
sha256 = "1cf6xx2hiy1xalp35fh8g73j67r0w0g66jpcbc6971x9jbm7bvjy";
};
nativeBuildInputs = [ makeWrapper ];
postInstall = ''
wrapProgram $out/bin/rename \
--prefix PERL5LIB : $out/lib/perl5/site_perl
'';
meta = with stdenv.lib; {
description = "Perl extension for renaming multiple files";
license = licenses.artistic1;
maintainers = with maintainers; [ peterhoeg ];
};
}