summary refs log blame commit diff
path: root/pkgs/development/php-packages/swoole/default.nix
blob: c9ec1b3938f038a65862c4e9a3ea612abfe2f9a3 (plain) (tree)
1
2
3
4
5
6
7
8
9
                                         



                   

                                                                  
 
                                   











                                                                                            
{ lib, buildPecl, php, valgrind, pcre2 }:

buildPecl {
  pname = "swoole";

  version = "4.6.7";
  sha256 = "107wp403z8skkqrcm240vyyy6wqx5a4v2bqhlshlknyi14r2v165";

  buildInputs = [ valgrind pcre2 ];
  internalDeps = lib.optionals (lib.versionOlder php.version "7.4") [ php.extensions.hash ];

  doCheck = true;
  checkTarget = "tests";

  meta = with lib; {
    description = "Coroutine-based concurrency library for PHP";
    license = licenses.asl20;
    homepage = "https://www.swoole.co.uk/";
    maintainers = teams.php.members;
  };
}