Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
38 lines
873 B
Nix
38 lines
873 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchurl,
|
|
perl,
|
|
perlPackages,
|
|
}:
|
|
|
|
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";
|
|
};
|
|
|
|
# Fix an incorrect platform test that misidentifies Darwin as Windows
|
|
postPatch = ''
|
|
substituteInPlace Makefile.PL \
|
|
--replace '/win/i' '/MSWin32/'
|
|
'';
|
|
|
|
postFixup = ''
|
|
substituteInPlace $out/bin/rename \
|
|
--replace "#!${perl}/bin/perl" "#!${perl}/bin/perl -I $out/${perl.libPrefix}"
|
|
'';
|
|
|
|
doCheck = !stdenv.hostPlatform.isDarwin;
|
|
|
|
meta = with lib; {
|
|
description = "Perl extension for renaming multiple files";
|
|
license = licenses.artistic1;
|
|
maintainers = with maintainers; [ peterhoeg ];
|
|
mainProgram = "rename";
|
|
};
|
|
}
|