diff options
author | Zhaofeng Li <hello@zhaofeng.li> | 2021-06-02 22:21:56 -0700 |
---|---|---|
committer | Zhaofeng Li <hello@zhaofeng.li> | 2021-06-12 23:17:13 -0700 |
commit | 1f007dd0096a11d46bd3a26e18cd7c04313d7277 (patch) | |
tree | 711e47907feedc1d7d681213d5f36f98a8bd8131 /pkgs/top-level/php-packages.nix | |
parent | afe09e41df7e59619340ccf1dfbab940adc1e3e3 (diff) |
Use lib.meta.availableOn for optional Valgrind dependency
Diffstat (limited to 'pkgs/top-level/php-packages.nix')
-rw-r--r-- | pkgs/top-level/php-packages.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/top-level/php-packages.nix b/pkgs/top-level/php-packages.nix index 5575c1d429cf9..744e40c95dd21 100644 --- a/pkgs/top-level/php-packages.nix +++ b/pkgs/top-level/php-packages.nix @@ -364,7 +364,7 @@ lib.makeScope pkgs.newScope (self: with self; { # oci8 (7.4, 7.3, 7.2) # odbc (7.4, 7.3, 7.2) { name = "opcache"; - buildInputs = [ pcre2 ] ++ lib.optionals (!stdenv.isDarwin && lib.versionAtLeast php.version "8.0") [ + buildInputs = [ pcre2 ] ++ lib.optionals (lib.versionAtLeast php.version "8.0" && !stdenv.isDarwin && lib.meta.availableOn stdenv.hostPlatform valgrind) [ valgrind.dev ]; patches = lib.optionals (lib.versionOlder php.version "7.4") [ |