| 31 May 2023 |
Jan Tojnar | https://github.com/NixOS/nixpkgs/issues/50105 | 13:20:48 |
Pol | Will do it. | 13:22:06 |
Pol | Thanks for the link | 13:22:21 |
Pol | Just applied: https://github.com/NixOS/nixpkgs/issues/50105#issuecomment-1570264759 | 13:46:15 |
Pol | Feel free to express your voice, for or against ! | 13:51:32 |
| 1 Jun 2023 |
Pol | Hey! | 19:50:19 |
Pol | I'm trying to package a symfony app using the new PHP Builder I'm working on. | 19:50:31 |
Pol | I have this issue: | 19:51:06 |
Pol |  Download image.png | 19:51:09 |
Pol | Since this is a symfony app, we can control the cache and log dir using environment variables | 19:51:33 |
Pol | APP_CACHE_DIR and APP_LOG_DIR | 19:51:46 |
Pol | So I did this: | 19:51:49 |
Pol |  Download image.png | 19:52:09 |
Pol | But it doesn't have any impact and the issue is still there. | 19:52:44 |
Pol | Am I doing something wrong? | 20:02:19 |
tgerbet | Does not look like you are doing something wrong, they hardcode the path https://github.com/phpDocumentor/phpDocumentor/blob/acda4884faee0feed77b67e8f8761d010848b8be/src/phpDocumentor/Kernel.php#L69 | 21:38:35 |
tgerbet | They should probably have some logic to use `XDG_CACHE_HOME` (when it is defined) per project | 21:41:02 |
| 2 Jun 2023 |
Pol | OMG they customized the kernel :( | 06:46:26 |
Pol | I didn't even think about checking that! | 06:46:36 |
Pol | Thanks for letting me know. | 06:46:41 |
Pol | Fixed: https://github.com/NixOS/nixpkgs/pull/225401/commits/d3f5880cc61cb4609331e45dba190fce53b2bed3 | 07:01:01 |
Pol | Someone has a clue for this thing? | 08:19:07 |
Pol | installPhase = ''
runHook preInstall
wrapProgram "$out/bin/phpdoc" \
--suffix APP_CACHE_DIR : /tmp \
--suffix APP_LOG_DIR : /tmp/log
runHook postInstall
'';
In this installPhase, I'm trying to let user customize APP_CACHE_DIR and APP_LOG_DIR. When I run the program as such: APP_CACHE_DIR=./abc APP_LOG_DIR=./abc ./result/bin/phpdoc, a directory: abc: (hence the semicolon) is created. I tried to tweak the wrapProgram call but I can't find a valid and working solution. What am I doing wrong here?
| 08:19:09 |
Pol | got the solution! | 08:25:43 |
Pol | We have to use --set-default | 08:25:49 |
Pol | tgerbet: Fixed upstream: https://github.com/phpDocumentor/phpDocumentor/pull/3518 | 12:17:09 |
tgerbet | Noice | 12:17:40 |
| 6 Jun 2023 |
Pol | Hey all, I would like to push further this PR: https://github.com/NixOS/nixpkgs/pull/225401 There is one part where some help would be very welcome. Basically the core of this builder is baed on a Composer Plugin. It is used at the same time while building the local Composer repository and while doing the composer install. I would like to reduce the coupling between those two processes. Basically, "Composer With Local Composer Plugin" is built in the outer process and then it is passed as argument to the inner process (the one building the composer repository). Having that plugin enabled is mandatory to get this whole thing working. So, I'm looking for a way to have some kind of generic derivation for composer when I could 2 things to it: a COMPOSER_HOME variable and a composer derivation.
Apparently, adding a composerHome parameter to the current composer derivation is not the best pattern. So, I'm looking for some help on how to achieve this in a better way.
Do you have ideas?
| 06:59:32 |
| 8 Jun 2023 |
Pol | ramsey: I'm trying to introduce PHP 8.3 in Nix, but it seems that some tests are failing. To whom should I report the issue ? | 18:58:59 |
Pol | ramsey: You can see the compilation logs here: https://logs.ofborg.org/?key=nixos/nixpkgs.236481&attempt_id=3fa301d1-edba-47aa-87a6-07ac1fee3178 | 18:59:21 |