php.extensions.openswoole: 4.12.0 -> 22.0.0

This commit is contained in:
Pol Dellaiera 2022-12-26 11:10:14 +01:00
parent e8d9e7e908
commit 9501edfefb
No known key found for this signature in database
GPG Key ID: D476DFE9C67467CA

View File

@ -1,17 +1,23 @@
{ lib, stdenv, buildPecl, php, valgrind, pcre2 }:
{ lib, stdenv, buildPecl, php, valgrind, pcre2, fetchFromGitHub }:
let
pname = "openswoole";
version = "4.12.0";
in
buildPecl {
inherit pname version;
version = "22.0.0";
in buildPecl {
inherit version;
pname = "openswoole";
sha256 = "16fxwkjqihinzsmjbpzslf13m8yp0wnsqa2y5g0b07cf15g6qbny";
src = fetchFromGitHub {
owner = "openswoole";
repo = "swoole-src";
rev = "v${version}";
sha256 = "sha256-4Z7mBNGHXS/giSCmPpSyu9/99MEjCnoXgymDM/s1gk8=";
};
buildInputs = [ pcre2 ] ++ lib.optionals (!stdenv.isDarwin) [ valgrind ];
meta = with lib; {
changelog = "https://pecl.php.net/package/openswoole/${version}";
changelog = "https://github.com/openswoole/swoole-src/releases/tag/v${version}";
description = "Coroutine-based concurrency library and high performance programmatic server for PHP";
homepage = "https://www.openswoole.com/";
license = licenses.asl20;