2024-05-15 15:35:15 +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
|
2024-02-29 20:09:43 +00:00
|
|
|
version = "5.1.2";
|
2024-05-15 15:35:15 +00:00
|
|
|
in
|
|
|
|
buildPecl {
|
2023-01-11 07:51:40 +00:00
|
|
|
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}";
|
2024-02-29 20:09:43 +00:00
|
|
|
hash = "sha256-WTsntvauiooj081mOoFcK6CVpnCCR/cEQtJbsOIJ/wo=";
|
2023-01-11 07:51:40 +00:00
|
|
|
};
|
2021-03-15 08:37:03 +00:00
|
|
|
|
2024-09-26 11:04:55 +00:00
|
|
|
buildInputs = [ pcre2 ] ++ lib.optionals (!stdenv.hostPlatform.isDarwin) [ valgrind ];
|
2021-03-15 08:37:03 +00:00
|
|
|
|
2024-02-29 20:09:43 +00:00
|
|
|
# tests require internet access
|
|
|
|
doCheck = false;
|
2021-03-15 08:37:03 +00:00
|
|
|
|
2024-02-29 20:09:43 +00:00
|
|
|
meta = {
|
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";
|
2024-02-29 20:09:43 +00:00
|
|
|
homepage = "https://www.swoole.com";
|
|
|
|
license = lib.licenses.asl20;
|
|
|
|
maintainers = lib.teams.php.members;
|
2021-03-15 08:37:03 +00:00
|
|
|
};
|
|
|
|
}
|