Fix Swoole PHP extension on Darwin by marking Valgrind as an optional dependency

This commit is contained in:
Tristan Pemble
2021-08-17 14:54:10 -07:00
parent 6511aaefdc
commit 4d84ca88ce
@@ -1,4 +1,4 @@
{ lib, buildPecl, php, valgrind, pcre2 }:
{ lib, stdenv, buildPecl, php, valgrind, pcre2 }:
buildPecl {
pname = "swoole";
@@ -6,7 +6,7 @@ buildPecl {
version = "4.6.7";
sha256 = "107wp403z8skkqrcm240vyyy6wqx5a4v2bqhlshlknyi14r2v165";
buildInputs = [ valgrind pcre2 ];
buildInputs = [ pcre2 ] ++ lib.optionals (!stdenv.isDarwin) [ valgrind ];
internalDeps = lib.optionals (lib.versionOlder php.version "7.4") [ php.extensions.hash ];
doCheck = true;