mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-17 19:23:50 +00:00
29 lines
726 B
Nix
29 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;
|
|
};
|
|
}
|