2021-08-17 23:51:51 +02:00
|
|
|
{ lib, stdenv, buildPecl, php, valgrind, pcre2 }:
|
2021-03-11 18:01:45 +01:00
|
|
|
|
|
|
|
buildPecl {
|
|
|
|
pname = "swoole";
|
|
|
|
|
2022-11-12 12:40:52 +01:00
|
|
|
version = "5.0.1";
|
|
|
|
sha256 = "1zq5vvwjqpg3d4qv8902w54gvghjgcb3c7szi7fpqi6f51mhhwvf";
|
2021-03-11 18:01:45 +01:00
|
|
|
|
2021-08-17 23:51:51 +02:00
|
|
|
buildInputs = [ pcre2 ] ++ lib.optionals (!stdenv.isDarwin) [ valgrind ];
|
2021-03-11 18:01:45 +01:00
|
|
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|