!jngDrdMgndWibPCYsR:nixos.org

Nix PHP

76 Members
A room for PHP developers running on Nix22 Servers

Load older messages


SenderMessageTime
2 Jun 2023
@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
9 Jun 2023
@etu:failar.nu@etu:failar.nu ramsey: We've chosen to ignore tests for specific extensions on specific versions in the past, that's always an option but also a bit of a last resort :) 10:49:35
@etu:failar.nu@etu:failar.nu * Pol: : We've chosen to ignore tests for specific extensions on specific versions in the past, that's always an option but also a bit of a last resort :) 10:49:44
@etu:failar.nu@etu:failar.nu * Pol: We've chosen to ignore tests for specific extensions on specific versions in the past, that's always an option but also a bit of a last resort :) 10:49:49
@etu:failar.nu@etu:failar.nuWe should also consider switching to 8.2 as default PHP asap 🙂10:50:07
@drupol:matrix.orgPolOk that's an option. 10:50:10
@drupol:matrix.orgPolBut I think here it's another issue.10:50:17
@etu:failar.nu@etu:failar.nu * Pol: We've chosen to ignore tests for specific extensions on specific versions in the past, that's always an option but also a bit of a last resort 🙂 10:50:20
@drupol:matrix.orgPolSee: https://github.com/php/php-src/issues/1140810:50:38
@drupol:matrix.orgPolEspecially the log10:50:42
@drupol:matrix.orgPol

php-fileinfo> Warning: PHP Startup: Invalid library (maybe not a PHP library) 'fileinfo.so' in Unknown on line 0

10:51:00
@drupol:matrix.orgPolAnd given the amount of failures, I doubt that the issues comes from a bad tests... I guess it comes from somewhere else.11:06:45
@jtojnar:matrix.orgJan Tojnar
In reply to @drupol:matrix.org
See: https://github.com/php/php-src/issues/11408
that sounds pretty NixOS specific, probably too early to report it upstream.
15:21:15
@jtojnar:matrix.orgJan Tojnar Try building with --keep-failed and look at what the file actually is 15:21:33
@drupol:matrix.orgPolI'm back.19:34:53
@drupol:matrix.orgPol Jan Tojnar: I've checked the fileinfo.so file and added the info in the issue. 19:35:40
@drupol:matrix.orgPolTBH, I don't know what I'm looking for yet.19:35:51
@jtojnar:matrix.orgJan Tojnar
In reply to @drupol:matrix.org
TBH, I don't know what I'm looking for yet.
looks okay to me, I guess time to bisect
19:43:30
@drupol:matrix.orgPolbisect... ? PHP ?19:43:43
@drupol:matrix.orgPolCurious to see how you do that19:44:10
@jtojnar:matrix.orgJan Tojnar you can set src of the Nix package to the path to your local php-src checkout 19:44:59
@jtojnar:matrix.orgJan Tojnar and then run git bisect run nix-build ~/Projects/nixpkgs -A php 19:45:25

Show newer messages


Back to Room ListRoom Version: 6