!jngDrdMgndWibPCYsR:nixos.org

Nix PHP

78 Members
A room for PHP developers running on Nix21 Servers

Load older messages


SenderMessageTime
13 Apr 2023
@drupol:matrix.orgPolI'll brb in a couple of minutes, my raspberry Pi is making an update and it is slowing down the whole house network... 18:34:07
@drupol:matrix.orgPolI'm doing it while the kids are away :D18:34:15
@drupol:matrix.orgPolIT works !19:02:11
@drupol:matrix.orgPol Of course, all the vendorHash needs to be refreshed... damn :S 19:04:36
@drupol:matrix.orgPolWould it be a good idea to have a centralized composer cache ?19:09:42
@drupol:matrix.orgPol Jan Tojnar: How can I prevent this? 19:17:01
@drupol:matrix.orgPolimage.png
Download image.png
19:17:04
@jtojnar:matrix.orgJan Tojnar Pol: I would use ${lib.optionalString (composerLock != null) "cp ${composerLock} composer.lock"} instead of the bash check 19:18:23
@drupol:matrix.orgPolbeautiful.19:21:21
14 Apr 2023
@drupol:matrix.orgPol Jan Tojnar: I tried to Composer by the source (with buildPhpProject builder), but I end up an infinite recursion. Do you have a clue on how we could build composer by the source? I guess the issue comes from https://github.com/NixOS/nixpkgs/pull/225401/files#diff-53e28b8539b04d6898db30da46a18a0bd1747d920ec8e70df2cd78eb1c0fb69bR59 since I require php.packages.composer to build a package ... is there a way to fix this you think ? 10:42:19
@drupol:matrix.orgPolI think I found the solution.12:05:44
@drupol:matrix.orgPol Jan Tojnar: There is an issue with Composer since I switched to the source, have a look: https://logs.ofborg.org/?key=nixos/nixpkgs.225401&attempt_id=ec47ce99-0ba6-473e-a5bb-3a58b2e58f7f 19:34:43
@jtojnar:matrix.orgJan Tojnar Pol: that sounds like bash is trying to run a php script 19:35:38
@drupol:matrix.orgPolI can't debug this thing19:35:50
@drupol:matrix.orgPolI don't know what's wrong since it works fine here19:36:05
@jtojnar:matrix.orgJan Tojnartry clearing the FOD hash19:36:36
@drupol:matrix.orgPolAre you able to reproduce the issue ?19:37:14
@drupol:matrix.orgPolEven after clearing the hashes, no problems here.19:37:31
@jtojnar:matrix.orgJan Tojnarwill try to take a look later19:41:27
@drupol:matrix.orgPolOki19:41:29
@drupol:matrix.orgPolMerci :)19:41:32
@jtojnar:matrix.orgJan Tojnaractually, looks like it is darwin19:41:50
@drupol:matrix.orgPolYes it's only on Darwin19:41:58
@drupol:matrix.orgPolBut it was working fine before I switched to composer source.19:42:12
@jtojnar:matrix.orgJan Tojnarso that sounds like the famous "darwin does not support scripts in shebang" issue19:42:14
@drupol:matrix.orgPolAaarghfuck19:42:21
@jtojnar:matrix.orgJan Tojnarpreviously it worked because we did not patch the shebangs but created an independent wrapper script that ran php with the program as argument19:44:13
@drupol:matrix.orgPolDo you recommend something for such issue? What would be the best approach ?19:44:58
@drupol:matrix.orgPolDoing a wrapper as well ?19:45:04
@jtojnar:matrix.orgJan Tojnarit might be easier to just use binary wrappers in php's generic.nix19:45:44

Show newer messages


Back to Room ListRoom Version: 6