mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-04-15 22:28:00 +00:00
Fix Swoole PHP extension on Darwin by marking Valgrind as an optional dependency
This commit is contained in:
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;
|
||||
|
Loading…
Reference in New Issue
Block a user