!jngDrdMgndWibPCYsR:nixos.org

Nix PHP

76 Members
A room for PHP developers running on Nix22 Servers

Load older messages


SenderMessageTime
31 May 2023
@jtojnar:matrix.orgJan Tojnarhttps://github.com/NixOS/nixpkgs/issues/5010513:20:48
@drupol:matrix.orgPolWill do it.13:22:06
@drupol:matrix.orgPolThanks for the link13:22:21
@drupol:matrix.orgPolJust applied: https://github.com/NixOS/nixpkgs/issues/50105#issuecomment-157026475913:46:15
@drupol:matrix.orgPolFeel free to express your voice, for or against !13:51:32
1 Jun 2023
@drupol:matrix.orgPolHey!19:50:19
@drupol:matrix.orgPolI'm trying to package a symfony app using the new PHP Builder I'm working on.19:50:31
@drupol:matrix.orgPolI have this issue:19:51:06
@drupol:matrix.orgPolimage.png
Download image.png
19:51:09
@drupol:matrix.orgPolSince this is a symfony app, we can control the cache and log dir using environment variables19:51:33
@drupol:matrix.orgPol APP_CACHE_DIR and APP_LOG_DIR 19:51:46
@drupol:matrix.orgPolSo I did this:19:51:49
@drupol:matrix.orgPolimage.png
Download image.png
19:52:09
@drupol:matrix.orgPolBut it doesn't have any impact and the issue is still there.19:52:44
@drupol:matrix.orgPolAm I doing something wrong?20:02:19
@tgerbet:matrix.orgtgerbetDoes not look like you are doing something wrong, they hardcode the path https://github.com/phpDocumentor/phpDocumentor/blob/acda4884faee0feed77b67e8f8761d010848b8be/src/phpDocumentor/Kernel.php#L6921:38:35
@tgerbet:matrix.orgtgerbetThey should probably have some logic to use `XDG_CACHE_HOME` (when it is defined) per project21:41:02
2 Jun 2023
@drupol:matrix.orgPolOMG they customized the kernel :(06:46:26
@drupol:matrix.orgPolI didn't even think about checking that!06:46:36
@drupol:matrix.orgPolThanks for letting me know.06:46:41
@drupol:matrix.orgPolFixed: https://github.com/NixOS/nixpkgs/pull/225401/commits/d3f5880cc61cb4609331e45dba190fce53b2bed307:01:01
@drupol:matrix.orgPolSomeone has a clue for this thing?08:19:07
@drupol:matrix.orgPol
  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
@drupol:matrix.orgPolgot the solution!08:25:43
@drupol:matrix.orgPol We have to use --set-default 08:25:49
@drupol:matrix.orgPol tgerbet: Fixed upstream: https://github.com/phpDocumentor/phpDocumentor/pull/3518 12:17:09
@tgerbet:matrix.orgtgerbetNoice12:17:40
6 Jun 2023
@drupol:matrix.orgPol

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
@drupol:matrix.orgPol 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
@drupol:matrix.orgPol 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

Show newer messages


Back to Room ListRoom Version: 6