!jngDrdMgndWibPCYsR:nixos.org

Nix PHP

74 Members
A room for PHP developers running on Nix21 Servers

Load older messages


SenderMessageTime
25 Nov 2023
@Zevran:matrix.orgGaël Reyrol* I didn't had enough time this week to go further. But one think is actually wrong, it is the way I fetch go modules, it is not reproducible and make the hash change between compilations. I have to fix this. Still the PR is published on nixpkgs but in draft mode.07:50:54
@Zevran:matrix.orgGaël Reyrolhttps://github.com/NixOS/nixpkgs/pull/26866507:51:26
@drupol:matrix.orgPolNice, feel free to ping Kevin Dunglas in case of issue11:13:07
@wjjunyor:matrix.orgw
In reply to @drupol:matrix.org
Are you using the function pkgs.php.buildComposerProject ?
No. Just knew about it when I googled. I'll try it.
12:43:14
@Zevran:matrix.orgGaël Reyrol Sure, I need to fork the main repository and see if I can build his project with go vendor mod instead of relying on modules from the $GOPATH. 13:45:49
@Zevran:matrix.orgGaël ReyrolI mean, it is in fact possible but it misses an internal dependency that is not included in the vendor mod, it is a raw C library: https://github.com/dunglas/frankenphp/tree/main/C-Thread-Pool13:48:12
@Zevran:matrix.orgGaël Reyrol turns out I just needed to enable vendorProxy = true; to fix this 15:29:27
@Zevran:matrix.orgGaël Reyrol I didn't knew about this in buildGoModule derivation 15:29:42
@Zevran:matrix.orgGaël ReyrolLast thing is to fix this pie mode, which require to use musl instead of glibc15:30:40
@Zevran:matrix.orgGaël Reyrol * Last thing is to fix this pie buildmode, which require to use musl instead of glibc 15:30:54
@Zevran:matrix.orgGaël ReyrolTurns out that golang still do not include non go files when vendoring : https://github.com/golang/go/issues/2636615:33:28
@Zevran:matrix.orgGaël Reyrol * It is worth to mention that golang still do not include non go files when vendoring : https://github.com/golang/go/issues/26366 15:33:43
@Zevran:matrix.orgGaël ReyrolI am not sure I want to try to compile it with musl, it will take ages 🤣15:45:38
@Zevran:matrix.orgGaël Reyrol Pol: the PR is ready to review :) 15:52:50
@drupol:matrix.orgPol Il manque le mainProgram 16:11:47
@drupol:matrix.orgPolAh non sorry ! :)16:12:00
@drupol:matrix.orgPolc'est beau16:12:36
@drupol:matrix.orgPolI don't understand this part: https://github.com/NixOS/nixpkgs/pull/268665/files#diff-f50bfb682218622afd9adb8e68164f487edb707b2ae68e05ceb6504388b1f24cR75-R7916:22:38
@Zevran:matrix.orgGaël ReyrolThis part allows to build a phpinfo page with Frankenphp as engine. Also if it fails, it means frankenphp is not properly working.16:42:53
@Zevran:matrix.orgGaël Reyrol Try it: nix-build -A frankenphp.tests.phpinfo and open the result in your browser. 16:43:18
@Zevran:matrix.orgGaël Reyrol Pol: I reviewed my PR with some comments, I had some thoughts will taking a shower 😆 16:43:57
@Zevran:matrix.orgGaël Reyrol * Pol: I reviewed my PR with some comments, I had some thoughts while taking a shower 😆 16:49:56
@drupol:matrix.orgPol About the buildInputs 17:27:32
@drupol:matrix.orgPolIs it possible to do:17:27:40
@drupol:matrix.orgPolbuildInputs = phpUnwrapped.buildInputs ++ [ pcre2 libargon2 libxml2 systemd ];17:28:00
@drupol:matrix.orgPol * buildInputs = phpUnwrapped.buildInputs ++ [ pcre2 libargon2 libxml2 systemd ]; 17:28:10
@drupol:matrix.orgPolAaah you did it actually ! :D17:28:34
@drupol:matrix.orgPolShower are always good :)17:29:55
27 Nov 2023
@drupol:matrix.orgPolInteresting discussion with Sebastian Bergmann regarding reproducibility: https://github.com/sebastianbergmann/phpunit/pull/5576#issuecomment-182730440107:54:33
@drupol:matrix.orgPol

Especially this sentence:

And this is why: I do not think that PHPUnit should be installed using an operating system package manager.

07:54:50

Show newer messages


Back to Room ListRoom Version: 6