nixpkgs/pkgs/development/php-packages/swoole/default.nix
2023-04-28 19:13:00 +00:00

28 lines
726 B
Nix

{ lib, stdenv, buildPecl, php, valgrind, pcre2, fetchFromGitHub }:
let
version = "5.0.3";
in buildPecl {
inherit version;
pname = "swoole";
src = fetchFromGitHub {
owner = "swoole";
repo = "swoole-src";
rev = "v${version}";
sha256 = "sha256-xadseYMbA+llzTf9JFIitJK2iR0dN8vAjv3n9/e7FGs=";
};
buildInputs = [ pcre2 ] ++ lib.optionals (!stdenv.isDarwin) [ valgrind ];
doCheck = true;
checkTarget = "tests";
meta = with lib; {
changelog = "https://github.com/swoole/swoole-src/releases/tag/v${version}";
description = "Coroutine-based concurrency library for PHP";
license = licenses.asl20;
homepage = "https://www.swoole.co.uk/";
maintainers = teams.php.members;
};
}