c7e6337bd0
GitOrigin-RevId: 08e4dc3a907a6dfec8bb3bbf1540d8abbffea22b
28 lines
726 B
Nix
28 lines
726 B
Nix
{ lib, stdenv, buildPecl, php, valgrind, pcre2, fetchFromGitHub }:
|
|
|
|
let
|
|
version = "5.0.3";
|
|
in buildPecl {
|
|
inherit version;
|
|
pname = "swoole";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "swoole";
|
|
repo = "swoole-src";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-xadseYMbA+llzTf9JFIitJK2iR0dN8vAjv3n9/e7FGs=";
|
|
};
|
|
|
|
buildInputs = [ pcre2 ] ++ lib.optionals (!stdenv.isDarwin) [ valgrind ];
|
|
|
|
doCheck = true;
|
|
checkTarget = "tests";
|
|
|
|
meta = with lib; {
|
|
changelog = "https://github.com/swoole/swoole-src/releases/tag/v${version}";
|
|
description = "Coroutine-based concurrency library for PHP";
|
|
license = licenses.asl20;
|
|
homepage = "https://www.swoole.co.uk/";
|
|
maintainers = teams.php.members;
|
|
};
|
|
}
|