2022-12-26 10:09:41 +00:00
|
|
|
{ lib, stdenv, buildPecl, php, valgrind, pcre2, fetchFromGitHub }:
|
2021-03-11 17:01:45 +00:00
|
|
|
|
2022-12-26 10:09:41 +00:00
|
|
|
let
|
2023-04-28 19:13:00 +00:00
|
|
|
version = "5.0.3";
|
2022-12-26 10:09:41 +00:00
|
|
|
in buildPecl {
|
|
|
|
inherit version;
|
2021-03-11 17:01:45 +00:00
|
|
|
pname = "swoole";
|
|
|
|
|
2022-12-26 10:09:41 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "swoole";
|
|
|
|
repo = "swoole-src";
|
|
|
|
rev = "v${version}";
|
2023-04-28 19:13:00 +00:00
|
|
|
sha256 = "sha256-xadseYMbA+llzTf9JFIitJK2iR0dN8vAjv3n9/e7FGs=";
|
2022-12-26 10:09:41 +00:00
|
|
|
};
|
2021-03-11 17:01:45 +00:00
|
|
|
|
2021-08-17 21:51:51 +00:00
|
|
|
buildInputs = [ pcre2 ] ++ lib.optionals (!stdenv.isDarwin) [ valgrind ];
|
2021-03-11 17:01:45 +00:00
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
checkTarget = "tests";
|
|
|
|
|
|
|
|
meta = with lib; {
|
2022-12-26 10:09:41 +00:00
|
|
|
changelog = "https://github.com/swoole/swoole-src/releases/tag/v${version}";
|
2021-03-11 17:01:45 +00:00
|
|
|
description = "Coroutine-based concurrency library for PHP";
|
|
|
|
license = licenses.asl20;
|
|
|
|
homepage = "https://www.swoole.co.uk/";
|
|
|
|
maintainers = teams.php.members;
|
|
|
|
};
|
|
|
|
}
|