!jngDrdMgndWibPCYsR:nixos.org

Nix PHP

77 Members
A room for PHP developers running on Nix23 Servers

Load older messages


SenderMessageTime
3 Mar 2022
@drupol:matrix.orgPol Maybe I can do that with overrideAttrs but I'm having hard time finding how to use it. 17:27:03
@drupol:matrix.orgPolI think I have it:17:30:28
@drupol:matrix.orgPolimage.png
Download image.png
17:30:30
@drupol:matrix.orgPolNope.17:32:05
4 Mar 2022
@drupol:matrix.orgPolRight, I closed this issue https://github.com/NixOS/nixpkgs/pull/158098 as we were not aligned on how it should be done.15:05:41
5 Mar 2022
@ramsey:matrix.orgramsey

Not sure why I’m not getting notifications from Element.

Pol: I’m not sure what you mean by “pecl relies on an external Git repo.” I’m also don’t understand what that has to do with compiling the development branch of PHP.

PHP has multiple development branches, btw. PHP-7.4 has 7.4.x-dev, PHP-8.0 has 8.0.x-dev, and PHP-8.1 has 8.1.x-dev. I think the master branch currently shows 8.2.x-dev.

21:28:04
@drupol:matrix.orgPol ramsey: No worries, I closed the issue. Basically, all the PHP extensions in Nix are relying on PECL urls to downloads src. I wanted to change that and use GitHub exclusively so r-ryantm bot could pick up those projects and provide automatic PRs to update them when a tag is published. I closed the issue for 2 reasons. First reason is that I haven't got much support from Nix PHP maintainers, and secondly because it turns out that the bot already update those packages (maybe there was an update in the meantime).
Regarding PHP development branches, this is another thing. I'm trying to build PHP from a dev branch and I will try those branches as well. I'm new to Nix (10 month), so there are things that I do not fully understand yet.
21:45:08
8 Mar 2022
@finn:tomesh.netfinn joined the room.16:11:02
@finn:tomesh.netfinn left the room.16:11:56
10 Mar 2022
@etu:semi.socialetuThe majority of extensions are upstream extensions and built from the same source as the php distribution though :)07:11:57
12 Mar 2022
@ramsey:matrix.orgramsey
In reply to @drupol:matrix.org
ramsey: No worries, I closed the issue. Basically, all the PHP extensions in Nix are relying on PECL urls to downloads src. I wanted to change that and use GitHub exclusively so r-ryantm bot could pick up those projects and provide automatic PRs to update them when a tag is published. I closed the issue for 2 reasons. First reason is that I haven't got much support from Nix PHP maintainers, and secondly because it turns out that the bot already update those packages (maybe there was an update in the meantime).
Regarding PHP development branches, this is another thing. I'm trying to build PHP from a dev branch and I will try those branches as well. I'm new to Nix (10 month), so there are things that I do not fully understand yet.
I'm newer to Nix (< 1 month), so you know a lot more about it than I do. 😉
20:00:13
@drupol:matrix.orgPolIt's fine :D we're both newcomers!20:00:29
@drupol:matrix.orgPolIf you need anything, just ask, I'll try to help as best as I can.20:00:41
@ramsey:matrix.orgramsey Pol: Just stumbled across this PR: https://github.com/NixOS/nixpkgs/pull/158098 22:17:06
@ramsey:matrix.orgramseyI think it would be great to add Phive to the list of PHP tools (along with Composer)22:17:23
@ramsey:matrix.orgramseyI'm trying to set up a development environment with nix pkgs, and Phive is one of the tools I need in that environment 🙂22:18:18
@ramsey:matrix.orgramseyPhive cannot be installed via Composer, so I have to manually download an install it22:19:11
@ramsey:matrix.orgramsey * Phive cannot be installed via Composer, so I have to manually download and install it22:19:19
@ramsey:matrix.orgramsey Also, it's becoming increasingly popular (and more reliable) to use the Phar versions of tools like PHPUnit, Psalm, PHPStan, etc., but the phar versions can't be added to require-dev and installed using Composer, so you have to download them individually for your dev environment 22:22:29
@ramsey:matrix.orgramseyPhive helps us do this, so I'd be fine excluding PHPUnit, Psalm, PHPStan, etc. from Nix packages, as long as Phive is provided, so that we can easily download them for the environment22:23:20
@ramsey:matrix.orgramseyAlthough, there is this, which might allow installing Phars with Composer: https://packagist.org/packages/phar-io/composer-plugin22:24:38
@drupol:matrix.orgPolI will focus on this tomorrow, it was on my to-do list!22:24:39
@ramsey:matrix.orgramseySo, if that package does the trick, then even adding a separate nix package for Phive might not be necessary22:25:05
@ramsey:matrix.orgramseyexcept they haven't updated it for the latest version of Composer, so it won't install ☹️22:26:16
@drupol:matrix.orgPol
In reply to @ramsey:matrix.org
Phive helps us do this, so I'd be fine excluding PHPUnit, Psalm, PHPStan, etc. from Nix packages, as long as Phive is provided, so that we can easily download them for the environment
I fully agree. Some of those packages provide a SHIM version and it's just enough
22:27:02
@drupol:matrix.orgPolI'll check phive in depth tomorrow22:27:43
@drupol:matrix.orgPolI wanted to also use phar versions of packages, but it's a bit against the practice in NixOS.22:28:49
@drupol:matrix.orgPolExample: https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/php-packages/php-parallel-lint/default.nix22:30:07
@drupol:matrix.orgPolThis tool provides a Phar, but we are building it ourselves.22:30:31
@drupol:matrix.orgPolI'm not particularly fan of this, but this is how it is. I guess there are maybe other valid reasons that I do not fully know yet.22:31:10

Show newer messages


Back to Room ListRoom Version: 6