!jngDrdMgndWibPCYsR:nixos.org

Nix PHP

68 Members
A room for PHP developers running on Nix19 Servers

Load older messages


SenderMessageTime
9 Mar 2024
@jee_mj:matrix.orgmj joined the room.03:36:51
10 Mar 2024
@patka_123:matrix.org@patka_123:matrix.org

Jan Tojnar I have two questions you might be able to answer (other people too of course, if they know an answer).

  1. What would the best solution be for all the programs under phpPackages that are not really libraries, but standalone apps? I guess they would be more at home in by-name than within phpPackages. But then where do we draw the line because almost everything currently under phpPackages fits this discription. (for example things like phpstan or psalm etc etc).

  2. If something goes from phpPackages to by-name is an alias in top-level/aliases.nlx the best place, or is there another mechanism to not break anything for existing users, but still being able to house it in by-name?

18:42:50
@jtojnar:matrix.orgJan Tojnar
In reply to @patka_123:matrix.org

Jan Tojnar I have two questions you might be able to answer (other people too of course, if they know an answer).

  1. What would the best solution be for all the programs under phpPackages that are not really libraries, but standalone apps? I guess they would be more at home in by-name than within phpPackages. But then where do we draw the line because almost everything currently under phpPackages fits this discription. (for example things like phpstan or psalm etc etc).

  2. If something goes from phpPackages to by-name is an alias in top-level/aliases.nlx the best place, or is there another mechanism to not break anything for existing users, but still being able to house it in by-name?

I think a package should only go to phpPackages when it changes behaviour based on PHP environment
18:58:19
@jtojnar:matrix.orgJan Tojnar top-level/aliases.nix is only for aliases in top-level, you will need to add the aliases to the phpPackages scope (similarly to how they are done in php extensions) 18:59:30
@patka_123:matrix.org@patka_123:matrix.org
In reply to @jtojnar:matrix.org
I think a package should only go to phpPackages when it changes behaviour based on PHP environment
So then things like phpstan, codesniffer, php-cs-fixer, phpmd etc all belong outside of phpPackages? Or is that a wrong conclusion?
19:01:34
@jtojnar:matrix.orgJan Tojnarit depends on how the tools are implemented19:02:31
@jtojnar:matrix.orgJan Tojnarfor example, I know that php-parallel-linter does depend on PHP version19:03:02
@patka_123:matrix.org@patka_123:matrix.org I'm not sure how to determine that, except for being familiar with the tool itself. Based on what did you determine that about php-parallel-linter for example? I guess something like php-cs-fixer then also changes behaviour based on environment, because it has different rules for different php versions? 19:06:25
@jtojnar:matrix.orgJan Tojnarphp-parallel-linter just calls php's built-in syntax checker IIRC19:07:52
@jtojnar:matrix.orgJan TojnarI would expect phpstan and php-cs-fixer implementing everything themselves (IIRC they have target version config option that might default to the current version when not set but should result in the same output regardless the PHP version)19:09:53
@jtojnar:matrix.orgJan Tojnarthough searching in memory now, I actually recall that PHPStan did have different results depending on PHP version19:11:03
@patka_123:matrix.org@patka_123:matrix.org Alright, that does make sense. Thanks for the explanation! I'm going to stay on the safe side, and leave this topic alone for now. I don't feel confident enough yet about making the decision that a package should go to by-name then 19:13:00
@drupol:matrix.org@drupol:matrix.orgNew PHP PR for improving the PHP builder warning message in case of Composer validation failure: https://github.com/NixOS/nixpkgs/pull/29483121:29:10
12 Mar 2024
@drupol:matrix.org@drupol:matrix.org tgerbet: Are you ok with this? ^^ Eval is red, but that's because of the warning. How to deal with that in nixpkgs? 09:36:31
13 Mar 2024
@patka_123:matrix.org@patka_123:matrix.org There is now a PHP label, so lets have them added automatically for us :) 16:35:23
@patka_123:matrix.org@patka_123:matrix.org

There is now a PHP label, so lets have them added automatically for us :)

https://github.com/NixOS/nixpkgs/pull/295643

16:35:33
14 Mar 2024
@drupol:matrix.org@drupol:matrix.orgReview required here: https://github.com/NixOS/nixpkgs/pull/29583613:32:28
@mjolnir:nixos.orgNixOS Moderation Botchanged room power levels.18:44:59
@drupol:matrix.org@drupol:matrix.orgHere's a new PR that fixes an issue for the upcoming 8.4 version: https://github.com/NixOS/nixpkgs/pull/29596820:28:59
@drupol:matrix.org@drupol:matrix.orgIt doesn't have an impact on older versions.20:29:14
@drupol:matrix.org@drupol:matrix.org * It doesn't have an impact on older versions. (I tested)20:29:20
@tgerbet:matrix.orgtgerbet
In reply to @drupol:matrix.org
tgerbet: Are you ok with this? ^^ Eval is red, but that's because of the warning. How to deal with that in nixpkgs?
I do not think lib.warnIf can be used for that. It will always be flagged by the nix-instantiate call done by OfBorg and it is not really an issue within nixpkgs code itself but from upstreams.
20:44:52
@drupol:matrix.org@drupol:matrix.org
In reply to @tgerbet:matrix.org
I do not think lib.warnIf can be used for that. It will always be flagged by the nix-instantiate call done by OfBorg and it is not really an issue within nixpkgs code itself but from upstreams.
Ok I will rework this.
20:45:17
@drupol:matrix.org@drupol:matrix.orgPR updated! https://github.com/NixOS/nixpkgs/pull/29483120:52:29
@drupol:matrix.org@drupol:matrix.orgThanks for the review!21:30:47
@drupol:matrix.org@drupol:matrix.orgThanks :)21:58:18
@drupol:matrix.org@drupol:matrix.orgEt re merci 22:35:24
@grahamc:nixos.org@grahamc:nixos.org joined the room.22:37:05
17 Mar 2024
@hexa:lossy.networkhexa
 engelsystem-migrate-start[1012]: Exception: Code: 0, Message: Call to undefined function Symfony\Polyfill\Mbstring\iconv_substr(), File: vendor/symfony/polyfill-mbstring/Mbstring.php:660, Previous: None, Trace: [{"file":"\/nix\/store\/03xgnc2nzf5z0112j4b1kmm5qpyrapqf-engelsystem-3.5.0\/share\/engelsystem\/vendor\/symfony\/polyf]
02:23:58
@hexa:lossy.networkhexacurrently looking at https://github.com/NixOS/nixpkgs/pull/28006302:24:13

Show newer messages


Back to Room ListRoom Version: 6