git.iko.soy/typeable/nixpkgs
on master help sign in
php74Extensions.openswoole: init at 4.11.1

Request to add openswoole: https://pecl.php.net/package/openswoole Open Swoole is a fork of [Swoole](https://github.com/johanjanssens/nixpkgs/tree/master/pkgs/development/php-packages/swoole). It is actively maintained by some of the original developers and has growing community. - https://github.com/openswoole - https://openswoole.com/ - https://twitter.com/openswoole

commit81b77fd3847a2eb23618b7cbaa23049ba6139fa2 authorJohan Janssens <johan@janssens.me> dateSun 10 Apr 2022, 16:46 (5 years ago) parent67287af
2 files changed+24
pkgs/development/php-packages/openswoole/default.nix+22 pkgs/top-level/php-packages.nix+2
pkgs/development/php-packages/openswoole/default.nixnew file+22
@@ -0,0 +1,22 @@
1+{ lib, stdenv, buildPecl, php, valgrind, pcre2 }:
2+let
3+ pname = "openswoole";
4+ version = "4.11.1";
5+in
6+buildPecl {
7+ inherit pname version;
8+
9+ sha256 = "sha256-Rhoa4ny86dwB3e86/1W30AlDGRUDYjK8RusquKF5Izg=";
10+
11+ buildInputs = [ pcre2 ] ++ lib.optionals (!stdenv.isDarwin) [ valgrind ];
12+ internalDeps = lib.optionals (lib.versionOlder php.version "7.4") [ php.extensions.hash ];
13+
14+ meta = with lib; {
15+ changelog = "https://pecl.php.net/package/openswoole/${version}";
16+ description = "Coroutine-based concurrency library and high performance programmatic server for PHP";
17+ homepage = "https://www.openswoole.com/";
18+ license = licenses.asl20;
19+ longDescription = "Open Swoole allows you to build high-performance, async multi-tasking webservices and applications using an easy to use Coroutine API.\nOpen Swoole is a complete async solution that has built-in support for async programming via coroutines.\nIt offers a range of multi-threaded I/O modules (HTTP Server, WebSockets, TaskWorkers, Process Pools) out of the box and support for popular PHP clients like PDO for MySQL, and CURL.\nYou can use the sync or async, Coroutine API to write whole applications or create thousands of light weight Coroutines within one Linux process.";
20+ maintainers = teams.php.members;
21+ };
22+}
pkgs/top-level/php-packages.nix+2
@@ -209,6 +209,8 @@ lib.makeScope pkgs.newScope (self: with self; {
209209 sha256 = "108ds92620dih5768z19hi0jxfa7wfg5hdvyyvpapir87c0ap914";
210210 });
211211
212+ openswoole = callPackage ../development/php-packages/openswoole { };
213+
212214 pdlib = callPackage ../development/php-packages/pdlib { };
213215
214216 pcov = callPackage ../development/php-packages/pcov { };