Unverified Commit f7ac705d authored by Elis Hirwing's avatar Elis Hirwing Committed by GitHub
Browse files

Merge pull request #261470 from fgaz/php-opcache/optional-valgrind

phpExtensions.opcache: use valgrind only where supported
parents 57b4f546 4a4991d3
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -462,9 +462,10 @@ lib.makeScope pkgs.newScope (self: with self; {
        }
        {
          name = "opcache";
          buildInputs = [ pcre2 ] ++ lib.optionals (!stdenv.isDarwin) [
            valgrind.dev
          ];
          buildInputs = [ pcre2 ] ++
            lib.optional
              (!stdenv.isDarwin && lib.meta.availableOn stdenv.hostPlatform valgrind)
              valgrind.dev;
          zendExtension = true;
          postPatch = lib.optionalString stdenv.isDarwin ''
            # Tests are flaky on darwin