nixpkgs/pkgs/development/php-packages/swoole/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

29 lines
726 B
Nix
Raw Normal View History

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