!jngDrdMgndWibPCYsR:nixos.org

Nix PHP

75 Members
A room for PHP developers running on Nix21 Servers

Load older messages


SenderMessageTime
26 Jun 2023
@drupol:matrix.orgPolThanks to all the people who helped me in there :)19:04:55
28 Jun 2023
@Zevran:matrix.orgGaël ReyrolIf anyone is interested I published a PR to add a prometheus exporter that monitors PHP-FPM processes : https://github.com/NixOS/nixpkgs/pull/24039419:17:09
29 Jun 2023
@drupol:matrix.orgPolHey, got a question with Nix and PHP.06:35:38
@drupol:matrix.orgPolHow can I get the list of extension enabled in a PHP derivation ?06:35:49
@drupol:matrix.orgPol so, if I have php81, how to get the list (string) of all the extension enabled in that derivation ? 06:36:08
@drupol:matrix.orgPol When I do php81.extensions, I get a list of ALL the extension available, not the one that are enabled only. 06:36:49
@drupol:matrix.orgPolI just want those that are enabled only.06:36:58
@drupol:matrix.orgPolOpened the issue at https://github.com/fossar/nix-phps/issues/24506:54:42
@Zevran:matrix.orgGaël Reyrol From what I understand in the pkgs/development/interpreters/php/generic.nix, php81.extensions does provide the enabled extensions. 07:00:03
@drupol:matrix.orgPolyes, indeed... 07:08:12
@drupol:matrix.orgPolI think the issue is in fossar/nix-phps07:08:18
@drupol:matrix.orgPolhttps://github.com/fossar/nix-phps/pull/24607:14:33
@drupol:matrix.orgPolCreated the fix :)07:14:35
@drupol:matrix.orgPol 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
@drupol:matrix.orgPolI haven't found a way to do it yet11:53:48
@etu:failar.nu@etu:failar.nu Pol: I don't think we expose that list in nix 12:27:55
@etu:failar.nu@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
@Zevran:matrix.orgGaël ReyrolMaybe you can check which pecl deps are installed as dependencies of php ?12:44:40
@drupol:matrix.orgPolWell see12:52:00
@etu:failar.nu@etu:failar.nuWhat do you need it for?19:29:53
@etu:failar.nu@etu:failar.nuBecause if you need exact data on this, just build your own php with your own list ;)19:30:16
@drupol:matrix.orgPol I rewrote loophp/nix-shell 20:24:05
@drupol:matrix.orgPolSee the PR I'm working on right now: https://github.com/loophp/nix-shell/pull/15720:24:26
@drupol:matrix.orgPolI finally found a way to get the enabled extensions20:24:48
@drupol:matrix.orgPolIt was actually easy20:24:54
@drupol:matrix.orgPolI'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/984604356220:42:42
30 Jun 2023
@etu:failar.nu@etu:failar.nuSomething I've been thinking of doing is to see if we can implement a test case for each PHP extension in nixpkgs07:21:20
@etu:failar.nu@etu:failar.nuAnd add a passthrou test case for each extension07:21:30
@etu:failar.nu@etu:failar.nuThe 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 loading07:22:09
@drupol:matrix.orgPolI'm busy fixing extensions right now07:34:21

Show newer messages


Back to Room ListRoom Version: 6