| 13 Apr 2023 |
Pol | I'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 |
Pol | I'm doing it while the kids are away :D | 18:34:15 |
Pol | IT works ! | 19:02:11 |
Pol | Of course, all the vendorHash needs to be refreshed... damn :S | 19:04:36 |
Pol | Would it be a good idea to have a centralized composer cache ? | 19:09:42 |
Pol | Jan Tojnar: How can I prevent this? | 19:17:01 |
Pol |  Download image.png | 19:17:04 |
Jan Tojnar | Pol: I would use ${lib.optionalString (composerLock != null) "cp ${composerLock} composer.lock"} instead of the bash check | 19:18:23 |
Pol | beautiful. | 19:21:21 |
| 14 Apr 2023 |
Pol | 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 |
Pol | I think I found the solution. | 12:05:44 |
Pol | 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 |
Jan Tojnar | Pol: that sounds like bash is trying to run a php script | 19:35:38 |
Pol | I can't debug this thing | 19:35:50 |
Pol | I don't know what's wrong since it works fine here | 19:36:05 |
Jan Tojnar | try clearing the FOD hash | 19:36:36 |
Pol | Are you able to reproduce the issue ? | 19:37:14 |
Pol | Even after clearing the hashes, no problems here. | 19:37:31 |
Jan Tojnar | will try to take a look later | 19:41:27 |
Pol | Oki | 19:41:29 |
Pol | Merci :) | 19:41:32 |
Jan Tojnar | actually, looks like it is darwin | 19:41:50 |
Pol | Yes it's only on Darwin | 19:41:58 |
Pol | But it was working fine before I switched to composer source. | 19:42:12 |
Jan Tojnar | so that sounds like the famous "darwin does not support scripts in shebang" issue | 19:42:14 |
Pol | Aaarghfuck | 19:42:21 |
Jan Tojnar | previously it worked because we did not patch the shebangs but created an independent wrapper script that ran php with the program as argument | 19:44:13 |
Pol | Do you recommend something for such issue? What would be the best approach ? | 19:44:58 |
Pol | Doing a wrapper as well ? | 19:45:04 |
Jan Tojnar | it might be easier to just use binary wrappers in php's generic.nix | 19:45:44 |