2021-06-06 07:54:09 +00:00
|
|
|
{ lib, buildPecl, php, valgrind, pcre2 }:
|
2021-03-15 08:37:03 +00:00
|
|
|
|
|
|
|
buildPecl {
|
|
|
|
pname = "swoole";
|
|
|
|
|
|
|
|
version = "4.6.4";
|
|
|
|
sha256 = "0hgndnn27q7fbsb0nw6bfdg0kyy5di9vrmf7g53jc6lsnf73ha31";
|
|
|
|
|
2021-06-06 07:54:09 +00:00
|
|
|
buildInputs = [ valgrind pcre2 ];
|
2021-03-15 08:37:03 +00: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;
|
|
|
|
};
|
|
|
|
}
|