php: add buildEnv function for additional config on the CLI SAPI

Initially discussed in #55460.

This patch adds a `buildEnv` function to `php` that has the
following features:

* `php.buildEnv { extraConfig = /* ... */; }` to specify custom
  `php.ini` args for the CLI.

* `php.buildEnv { exts = phpPackages: [phpPackages.apcu] }` to
  create a PHP interpreter for the CLI with the `apcu` extension.
This commit is contained in:
Maximilian Bosch
2020-03-09 20:41:28 +01:00
parent 75aec2aae3
commit 0bf5619fe0
2 changed files with 32 additions and 5 deletions
+2
View File
@@ -664,6 +664,8 @@ let
doCheck = true;
checkTarget = "test";
zendExtension = true;
};
yaml = buildPecl {