Commit 4a4991d3 authored by Francesco Gazzetta's avatar Francesco Gazzetta
Browse files

phpExtensions.opcache: use valgrind only where supported

opcache is a default extension, so this fixes eval of php on platforms
where valgrind is not supported, such as risc-v.
parent 7cb9338b
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -440,9 +440,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