20 lines
498 B
Nix
20 lines
498 B
Nix
{ lib, stdenv, buildPecl, php, valgrind, pcre2 }:
|
|
|
|
buildPecl {
|
|
pname = "swoole";
|
|
|
|
version = "5.0.1";
|
|
sha256 = "1zq5vvwjqpg3d4qv8902w54gvghjgcb3c7szi7fpqi6f51mhhwvf";
|
|
|
|
buildInputs = [ pcre2 ] ++ lib.optionals (!stdenv.isDarwin) [ valgrind ];
|
|
|
|
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;
|
|
};
|
|
}
|