From 9f0eb44bb5080d255d86b802c000f87a8353ec9c Mon Sep 17 00:00:00 2001 From: "Zak B. Elep" Date: Mon, 22 Feb 2021 14:25:08 +0800 Subject: [PATCH] perlPackages.MojoIOLoopForkCall: use MojoIOLoopDelay Mojolicious 9 has deprecrated and factored out Mojo::IOLoop::Delay out to its own dist, so this module should now depend on this new dist; a small patch to use this dependency is needed. --- pkgs/top-level/perl-packages.nix | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/pkgs/top-level/perl-packages.nix b/pkgs/top-level/perl-packages.nix index d1ed9713b20..c4dd2d90013 100644 --- a/pkgs/top-level/perl-packages.nix +++ b/pkgs/top-level/perl-packages.nix @@ -13736,10 +13736,17 @@ let url = "mirror://cpan/authors/id/J/JB/JBERGER/Mojo-IOLoop-ForkCall-0.20.tar.gz"; sha256 = "2b9962244c25a71e4757356fb3e1237cf869e26d1c27215115ba7b057a81f1a6"; }; - propagatedBuildInputs = [ IOPipely Mojolicious ]; + propagatedBuildInputs = [ IOPipely Mojolicious MojoIOLoopDelay ]; + preBuild = '' + # This module needs the deprecated Mojo::IOLoop::Delay + substituteInPlace lib/Mojo/IOLoop/ForkCall.pm \ + --replace "use Mojo::IOLoop;" "use Mojo::IOLoop; use Mojo::IOLoop::Delay;" + ''; meta = { - description = "Run blocking functions asynchronously by forking"; + homepage = "https://github.com/jberger/Mojo-IOLoop-ForkCall"; + description = "Run blocking functions asynchronously by forking (deprecated)"; license = with lib.licenses; [ artistic1 gpl1Plus ]; + maintainers = [ maintainers.zakame ]; }; };