| 26 Jun 2023 |
Pol | Thanks to all the people who helped me in there :) | 19:04:55 |
| 28 Jun 2023 |
Gaël Reyrol | If anyone is interested I published a PR to add a prometheus exporter that monitors PHP-FPM processes : https://github.com/NixOS/nixpkgs/pull/240394 | 19:17:09 |
| 29 Jun 2023 |
Pol | Hey, got a question with Nix and PHP. | 06:35:38 |
Pol | How can I get the list of extension enabled in a PHP derivation ? | 06:35:49 |
Pol | so, if I have php81, how to get the list (string) of all the extension enabled in that derivation ? | 06:36:08 |
Pol | When I do php81.extensions, I get a list of ALL the extension available, not the one that are enabled only. | 06:36:49 |
Pol | I just want those that are enabled only. | 06:36:58 |
Pol | Opened the issue at https://github.com/fossar/nix-phps/issues/245 | 06:54:42 |
Gaël Reyrol | From what I understand in the pkgs/development/interpreters/php/generic.nix, php81.extensions does provide the enabled extensions. | 07:00:03 |
Pol | yes, indeed... | 07:08:12 |
Pol | I think the issue is in fossar/nix-phps | 07:08:18 |
Pol | https://github.com/fossar/nix-phps/pull/246 | 07:14:33 |
Pol | Created the fix :) | 07:14:35 |
Pol | Gaël Reyrol: Now, if I want to get that list of extensions: https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/interpreters/php/8.1.nix#L10 | 11:28:47 |
Pol | I haven't found a way to do it yet | 11:53:48 |
@etu:failar.nu | Pol: I don't think we expose that list in nix | 12:27:55 |
@etu:failar.nu | if you want an approximate list in shell you can run php -m but that's not... the same 🙂 | 12:28:17 |
Gaël Reyrol | Maybe you can check which pecl deps are installed as dependencies of php ? | 12:44:40 |
Pol | Well see | 12:52:00 |
@etu:failar.nu | What do you need it for? | 19:29:53 |
@etu:failar.nu | Because if you need exact data on this, just build your own php with your own list ;) | 19:30:16 |
Pol | I rewrote loophp/nix-shell | 20:24:05 |
Pol | See the PR I'm working on right now: https://github.com/loophp/nix-shell/pull/157 | 20:24:26 |
Pol | I finally found a way to get the enabled extensions | 20:24:48 |
Pol | It was actually easy | 20:24:54 |
Pol | I've updated the CI in this PR and I can see all the broken extensions now, see it here: https://github.com/loophp/nix-shell/actions/runs/5416379047/jobs/9846043562 | 20:42:42 |
| 30 Jun 2023 |
@etu:failar.nu | Something I've been thinking of doing is to see if we can implement a test case for each PHP extension in nixpkgs | 07:21:20 |
@etu:failar.nu | And add a passthrou test case for each extension | 07:21:30 |
@etu:failar.nu | The test wouldn't test the features of the extension, but it would be nice to see that it loaded and didn't throw any errors or something while loading | 07:22:09 |
Pol | I'm busy fixing extensions right now | 07:34:21 |