blob: b8ac2bb1d7bc207a4a381c1c28bda7c65c6650e7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
{
lib,
stdenv,
buildPecl,
php,
valgrind,
pcre2,
fetchFromGitHub,
}:
let
version = "6.1.8";
in
buildPecl {
inherit version;
pname = "swoole";
src = fetchFromGitHub {
owner = "swoole";
repo = "swoole-src";
rev = "v${version}";
hash = "sha256-z/f3GLI/PQJJWcY968fOH00btDaKDx3M0Nb/IOjDgeY=";
};
buildInputs = [ pcre2 ] ++ lib.optionals (!stdenv.hostPlatform.isDarwin) [ valgrind ];
# tests require internet access
doCheck = false;
meta = {
changelog = "https://github.com/swoole/swoole-src/releases/tag/v${version}";
description = "Coroutine-based concurrency library for PHP";
homepage = "https://www.swoole.com";
license = lib.licenses.asl20;
teams = [ lib.teams.php ];
broken = lib.versionAtLeast php.version "8.5";
};
}
|