phpExtensions.opcache: fix test environment for darwin

This commit is contained in:
Thomas Gerbet 2023-02-06 22:47:16 +01:00
parent 1c595e2fff
commit e3bec64e7f

View file

@ -84,6 +84,7 @@ lib.makeScope pkgs.newScope (self: with self; {
, zendExtension ? false
, doCheck ? true
, extName ? name
, allowLocalNetworking ? false
, ...
}@args: stdenv.mkDerivation ((builtins.removeAttrs args [ "name" ]) // {
pname = "php-${name}";
@ -103,6 +104,7 @@ lib.makeScope pkgs.newScope (self: with self; {
];
inherit configureFlags internalDeps buildInputs zendExtension doCheck;
__darwinAllowLocalNetworking = allowLocalNetworking;
preConfigurePhases = [
"cdToExtensionRootPhase"
@ -412,7 +414,7 @@ lib.makeScope pkgs.newScope (self: with self; {
];
zendExtension = true;
# Tests launch the builtin webserver.
__darwinAllowLocalNetworking = true;
allowLocalNetworking = true;
}
{
name = "openssl";