2021-06-03 15:06:06 +02:00
|
|
|
{ lib, buildPecl, php, valgrind, pcre2 }:
|
2021-03-11 18:01:45 +01:00
|
|
|
|
|
|
|
buildPecl {
|
|
|
|
pname = "swoole";
|
|
|
|
|
2021-06-10 08:47:51 +02:00
|
|
|
version = "4.6.7";
|
|
|
|
sha256 = "107wp403z8skkqrcm240vyyy6wqx5a4v2bqhlshlknyi14r2v165";
|
2021-03-11 18:01:45 +01:00
|
|
|
|
2021-06-03 15:06:06 +02:00
|
|
|
buildInputs = [ valgrind pcre2 ];
|
2021-03-11 18:01:45 +01:00
|
|
|
internalDeps = lib.optionals (lib.versionOlder php.version "7.4") [ php.extensions.hash ];
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
checkTarget = "tests";
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Coroutine-based concurrency library for PHP";
|
|
|
|
license = licenses.asl20;
|
|
|
|
homepage = "https://www.swoole.co.uk/";
|
|
|
|
maintainers = teams.php.members;
|
|
|
|
};
|
|
|
|
}
|