Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
747 B · 37 lines
Nix
1234567891011121314151617181920212223242526272829303132333435363738{ lib, stdenv, buildPecl, php, valgrind, pcre2, fetchFromGitHub,}:
let version = "6.0.2";inbuildPecl { inherit version; pname = "swoole";
src = fetchFromGitHub { owner = "swoole"; repo = "swoole-src"; rev = "v${version}"; hash = "sha256-mCJj0vLpJinxK/EfPq+CeVWnoxouqClOKYbrgj7GNDc="; };
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; teams = [ lib.teams.php ]; };}