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

launchpad/nixpkgs/master
Tristan Pemble 3 years ago
parent 6511aaefdc
commit 4d84ca88ce
  1. 4
      pkgs/development/php-packages/swoole/default.nix

@ -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…
Cancel
Save