3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/php-packages/swoole/default.nix

22 lines
590 B
Nix
Raw Normal View History

{ lib, stdenv, buildPecl, php, valgrind, pcre2 }:
2021-03-11 17:01:45 +00:00
buildPecl {
pname = "swoole";
2021-12-08 09:16:04 +00:00
version = "4.8.3";
sha256 = "sha256-Oa/SnmmMc/KZXyP/qX9BT7V1xPa4EWJa/GUNngpA4pw=";
2021-03-11 17:01:45 +00:00
buildInputs = [ pcre2 ] ++ lib.optionals (!stdenv.isDarwin) [ valgrind ];
2021-03-11 17:01:45 +00:00
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;
};
}