git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #168149 from johanjanssens/master

phpExtensions.openswoole: init at 4.11.1

commit64db84dbb05b173d2cfb242e201a1e932325b409 authorElis Hirwing <elis@hirwing.se> dateWed 4 May 2022, 15:15 (5 years ago) parentfe8daa381b77fd
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 { };