!jngDrdMgndWibPCYsR:nixos.org

Nix PHP

76 Members
A room for PHP developers running on Nix23 Servers

Load older messages


SenderMessageTime
9 May 2024
@patka_123:matrix.org@patka_123:matrix.org *

buildsupport/php: add passthru.updateScript

Lets make sure that (almost) all PHP packages can be updated by the r-ryantm bot!

PHP packages where upstream provides a lock file can be automatically updated with the standard nix-update-script. The next step (in a following PR) will be to create a script that optionally updates and replaces the local lock file if upstream doesn't provide it.

09:03:13
@patka_123:matrix.org@patka_123:matrix.org *

buildsupport/php: add default passthru.updateScript

Lets make sure that (almost) all PHP packages can be updated by the r-ryantm bot!

PHP packages where upstream provides a lock file can be automatically updated with the standard nix-update-script. The next step (in a following PR) will be to create a script that optionally updates and replaces the local lock file if upstream doesn't provide it.

09:06:00
@patka_123:matrix.org@patka_123:matrix.org *

buildsupport/php: add default passthru.updateScript

Lets make sure that (almost) all PHP packages can be updated by the r-ryantm bot!

PHP packages where upstream provides a lock file can be automatically updated with the standard nix-update-script. The next step (in a following PR) will be to create a script that optionally regenerates and replaces the local lock file if upstream doesn't provide it.

09:15:48
@patka_123:matrix.org@patka_123:matrix.org Pol Jan Tojnar sorry for the PR spam... 12:47:57
@patka_123:matrix.org@patka_123:matrix.org *

Pol Jan Tojnar sorry for the PR spam...

(yes, I know how git works)

12:58:36
10 May 2024
@slytherx:matrix.orgslytherx joined the room.21:33:17
13 May 2024
@patka_123:matrix.org@patka_123:matrix.org

I might be missing something, so I'll just ask here:

The box PHP package is built with php82.buildComposerProject and upstream also has "php": "^8.2" in their composer.json (and .lock). But then why does it also end up in the php81Packages set?

Shouldn't we have some kind of mechanism that uses the php version that composer uses to decide whether or not it belongs in a given package set?

17:24:03
@patka_123:matrix.org@patka_123:matrix.org

Another question:

isn't it kind of problematic that we supply lock files (with a lock for packages where upstream doesn't provide one) using composerLock = ./composer.lock that is generated with only a single php version, while the package is in 3 package sets (phpPackages 81, 82, 83)? Shouldn't we have 3 different generated lock files, or at least generate the lock file using the lowest supported php package set version? (so 81)

19:30:06
@patka_123:matrix.org@patka_123:matrix.orgAwesome. The first r-ryantm php package updates are rolling in 🎉21:11:45
@patka_123:matrix.org@patka_123:matrix.org * Awesome. The first r-ryantm php package updates are rolling in 🎉 https://github.com/NixOS/nixpkgs/pull/31146921:11:53
14 May 2024
@drupol:matrix.orgPolThanks for the very useful change!06:05:31
@patka_123:matrix.org@patka_123:matrix.org

There is a very slight chance, but I'll try anyway ^^

Is anyone aware of the couchbase php sdk going closed source? We have a PHP extension for couchbase that currently doesn't build. We have 3.2.2, which is the last version on the repo. But it seems like the newest version is 4.2.1.

So I'm afraid they went closed source and we'd just have to build from the tarball. But maybe I'm missing something since I don't use couchbase?

17:02:07
@jtojnar:matrix.orgJan Tojnar
In reply to @patka_123:matrix.org

There is a very slight chance, but I'll try anyway ^^

Is anyone aware of the couchbase php sdk going closed source? We have a PHP extension for couchbase that currently doesn't build. We have 3.2.2, which is the last version on the repo. But it seems like the newest version is 4.2.1.

So I'm afraid they went closed source and we'd just have to build from the tarball. But maybe I'm missing something since I don't use couchbase?

See PR 240673
17:48:12
@jtojnar:matrix.orgJan Tojnar* See https://github.com/NixOS/nixpkgs/pull/24067317:48:58
@drupol:matrix.orgPol good luck with that thing patka :S 18:25:40
@patka_123:matrix.org@patka_123:matrix.orgYeah... I will spent my time and energy on happier things. It seems like this is the only thing left within nixpkgs php that is not working, so we have to leave something broken ^^18:40:19
16 May 2024
@drupol:matrix.orgPolI'm making plenty of experimentation at the moment with the version 2 of the PHP builder.12:36:57
@drupol:matrix.orgPol * I'm making plenty of experimentations at the moment with the version 2 of the PHP builder.12:37:03
@drupol:matrix.orgPolI was looking for a cleaner way to use Composer plugins.12:37:13
@drupol:matrix.orgPolHad to work on this yesterday and today at work.12:37:23
@drupol:matrix.orgPolI finally came up with this interface: https://github.com/NixOS/nixpkgs/pull/308059/commits/29d9c8a602875fe096eb35fc60dd1b1ece510e8d12:37:32
@drupol:matrix.orgPolThis works, but I don't know if it's the best way to do that.12:37:53
@drupol:matrix.orgPolFeel free to hack and participate in the PR at https://github.com/NixOS/nixpkgs/pull/30805912:38:06
@drupol:matrix.orgPolThanks to this, I can fix some bad design from version 1: https://github.com/NixOS/nixpkgs/pull/308059/commits/133d96cb6a70582d65ae8161906c4c4823457bd113:16:38
@drupol:matrix.orgPolI will most probably split that PR in multiple PR, trying to backport the good thing before introducing the version 2.13:16:57
@drupol:matrix.orgPolA lot of work ahead to avoid breaking everything.13:17:04
@drupol:matrix.orgPolAny small help is very welcome.13:17:11
@drupol:matrix.orgPolHere's some backport for the builder version 1: https://github.com/NixOS/nixpkgs/pull/31223115:07:28
@drupol:matrix.orgPolI think I'm done with that PR.16:14:42
@drupol:matrix.orgPol I'm happy enough... until someone will make a review and will kill my modjo :D looking at you Jan Tojnar ! :D :D :D 16:15:13

Show newer messages


Back to Room ListRoom Version: 6