Unverified Commit a1f39348 authored by Nick Cao's avatar Nick Cao Committed by GitHub
Browse files

Merge pull request #215004 from LeSuisse/php-extensions-allow-local-network-darwin

phpExtensions.opcache: fix test environment for darwin
parents abde696a e3bec64e
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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";