depot/pkgs/development/php-packages/swoole/default.nix
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

38 lines
808 B
Nix

{
lib,
stdenv,
buildPecl,
php,
valgrind,
pcre2,
fetchFromGitHub,
}:
let
version = "5.1.2";
in
buildPecl {
inherit version;
pname = "swoole";
src = fetchFromGitHub {
owner = "swoole";
repo = "swoole-src";
rev = "v${version}";
hash = "sha256-WTsntvauiooj081mOoFcK6CVpnCCR/cEQtJbsOIJ/wo=";
};
buildInputs = [ pcre2 ] ++ lib.optionals (!stdenv.hostPlatform.isDarwin) [ valgrind ];
# tests require internet access
doCheck = false;
meta = {
changelog = "https://github.com/swoole/swoole-src/releases/tag/v${version}";
description = "Coroutine-based concurrency library for PHP";
homepage = "https://www.swoole.com";
license = lib.licenses.asl20;
maintainers = lib.teams.php.members;
broken = lib.versionAtLeast php.version "8.4";
};
}