2024-02-29 20:09:43 +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";
|
2023-01-11 07:51:40 +00:00
|
|
|
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}";
|
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
|
|
|
|
2021-08-22 07:53:02 +00:00
|
|
|
buildInputs = [ pcre2 ] ++ lib.optionals (!stdenv.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
|
|
|
};
|
|
|
|
}
|