!jngDrdMgndWibPCYsR:nixos.org

Nix PHP

83 Members
A room for PHP developers running on Nix25 Servers

Load older messages


SenderMessageTime
24 Apr 2022
@drupol:matrix.orgPolAnd just for the sake of it, I'm trying to fix the issue.15:48:14
@hexa:lossy.networkhexa

The following versions are currently supported:

15:48:30
@hexa:lossy.networkhexawhere supported implies something very weird.15:48:40
@drupol:matrix.orgPolWe should update the README file, for sure.15:49:57
@drupol:matrix.orgPolHere's the problem with PHP 7.2: https://dpaste.org/OgXgA19:07:40
@drupol:matrix.orgPol It seems to be an issue in the intl extension. 19:07:52
@drupol:matrix.orgPolI cannot figure out what's the issue.19:08:02
@drupol:matrix.orgPolThe issue only happen on MacOS.19:08:09
25 Apr 2022
@drupol:matrix.orgPol etu: The pull request for adding PlatformSH has been recreated here: https://github.com/NixOS/nixpkgs/pull/170065 would be nice to have your input ! 07:33:16
@etu:semi.socialetu:)07:52:26
@etu:semi.socialetuYeah, it made more sense to not have it in PHP packages since it doesn't matter which PHP version it uses07:52:46
@etu:semi.socialetuAt least compared to something like composer where it matters a lot which extensions and php version it runs on07:53:16
@drupol:matrix.orgPolI agree !07:53:28
@drupol:matrix.orgPolThere are still 2 things that are really problematic in Nix with PHP.07:53:42
@drupol:matrix.orgPolAnd I can't do anything about it07:53:48
@drupol:matrix.orgPol
  1. https://github.com/NixOS/nixpkgs/pull/157287
  2. https://github.com/NixOS/nixpkgs/issues/154774
07:54:22
@drupol:matrix.orgPolIt would be so nice to push these 2 issues.07:54:32
@drupol:matrix.orgPol The first one prevent me to use infection/infection locally. As it needs XDebug, it fails because of all the warnings. 07:54:58
@drupol:matrix.orgPolThe second one also need some care, but I don't know where or how to start.07:55:19
@etu:semi.socialetuWriting a test07:55:30
@drupol:matrix.orgPolI don't really know, if you could give it some love or at least explain a bit how to do, I might have a look at some point.07:56:21
@etu:semi.socialetuHere's the tests file for php: https://github.com/NixOS/nixpkgs/blob/master/nixos/tests/php/default.nix07:58:30
@etu:semi.socialetuWhere we include the tests07:58:34
@etu:semi.socialetuThey are then declared for each PHP version in the all tests file: https://github.com/NixOS/nixpkgs/blob/master/nixos/tests/all-tests.nix#L420-L42307:59:09
@etu:semi.socialetuSo we run all tests as each version07:59:17
@etu:semi.socialetuSo it launches a NixOS VM and sets up services or runs commands and all that, then we can curl the VM to check if things works as expected07:59:57
@drupol:matrix.orgPolmmh mmh, thanks, will have a look as soon as I have some time.08:01:03
@drupol:matrix.orgPolIf you have an idea on how to write the test, please let me know.08:01:16
@etu:semi.socialetuWe also have this hack to pass through the "right version" of the tests to each PHP package: https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/interpreters/php/generic.nix#L15508:01:49
@etu:semi.socialetu So you can build php81.tests to eval the tests with php81 08:02:19

Show newer messages


Back to Room ListRoom Version: 6