lol

php.extensions.openswoole: 4.12.0 -> 22.0.0

+13 -7
+13 -7
pkgs/development/php-packages/openswoole/default.nix
··· 1 - { lib, stdenv, buildPecl, php, valgrind, pcre2 }: 1 + { lib, stdenv, buildPecl, php, valgrind, pcre2, fetchFromGitHub }: 2 + 2 3 let 3 4 pname = "openswoole"; 4 - version = "4.12.0"; 5 - in 6 - buildPecl { 7 - inherit pname version; 5 + version = "22.0.0"; 6 + in buildPecl { 7 + inherit version; 8 + pname = "openswoole"; 8 9 9 - sha256 = "16fxwkjqihinzsmjbpzslf13m8yp0wnsqa2y5g0b07cf15g6qbny"; 10 + src = fetchFromGitHub { 11 + owner = "openswoole"; 12 + repo = "swoole-src"; 13 + rev = "v${version}"; 14 + sha256 = "sha256-4Z7mBNGHXS/giSCmPpSyu9/99MEjCnoXgymDM/s1gk8="; 15 + }; 10 16 11 17 buildInputs = [ pcre2 ] ++ lib.optionals (!stdenv.isDarwin) [ valgrind ]; 12 18 13 19 meta = with lib; { 14 - changelog = "https://pecl.php.net/package/openswoole/${version}"; 20 + changelog = "https://github.com/openswoole/swoole-src/releases/tag/v${version}"; 15 21 description = "Coroutine-based concurrency library and high performance programmatic server for PHP"; 16 22 homepage = "https://www.openswoole.com/"; 17 23 license = licenses.asl20;