2023-01-11 07:51:40 +00:00
|
|
|
{ lib, stdenv, buildPecl, php, valgrind, pcre2, fetchFromGitHub }:
|
2021-03-15 08:37:03 +00:00
|
|
|
|
2023-01-11 07:51:40 +00:00
|
|
|
let
|
|
|
|
version = "5.0.1";
|
|
|
|
in buildPecl {
|
|
|
|
inherit version;
|
2021-03-15 08:37:03 +00:00
|
|
|
pname = "swoole";
|
|
|
|
|
2023-01-11 07:51:40 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "swoole";
|
|
|
|
repo = "swoole-src";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "sha256-d0xccbfOmebWR14oTUviWz/mB5IA7iXn0uUWxTQRd9w=";
|
|
|
|
};
|
2021-03-15 08:37:03 +00:00
|
|
|
|
2021-08-22 07:53:02 +00:00
|
|
|
buildInputs = [ pcre2 ] ++ lib.optionals (!stdenv.isDarwin) [ valgrind ];
|
2021-03-15 08:37:03 +00:00
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
checkTarget = "tests";
|
|
|
|
|
|
|
|
meta = with lib; {
|
2023-01-11 07:51:40 +00:00
|
|
|
changelog = "https://github.com/swoole/swoole-src/releases/tag/v${version}";
|
2021-03-15 08:37:03 +00:00
|
|
|
description = "Coroutine-based concurrency library for PHP";
|
|
|
|
license = licenses.asl20;
|
|
|
|
homepage = "https://www.swoole.co.uk/";
|
|
|
|
maintainers = teams.php.members;
|
|
|
|
};
|
|
|
|
}
|