!jngDrdMgndWibPCYsR:nixos.org

Nix PHP

64 Members
A room for PHP developers running on Nix22 Servers

Load older messages


SenderMessageTime
14 Aug 2024
@piotrkwiecinski:matrix.orgpiotrkwiecinskiI was looking at some errors in your build16:57:03
@piotrkwiecinski:matrix.orgpiotrkwiecinskihttps://github.com/php/php-src/commit/e2d97314ab342d434e778cd00a2f34e4bdb0766416:57:06
@piotrkwiecinski:matrix.orgpiotrkwiecinskiI don't see a backport to 8.2.14 in the list of tags16:57:25
@piotrkwiecinski:matrix.orgpiotrkwiecinskihttps://github.com/loophp/php-src-nix/actions/runs/10364035720/job/2868870271516:58:04
@piotrkwiecinski:matrix.orgpiotrkwiecinski8.2.13 and lower seem to fail due to issues with libxml 2.1316:59:57
@piotrkwiecinski:matrix.orgpiotrkwiecinskisame applies to 8.3.0-8.3.317:00:45
@piotrkwiecinski:matrix.orgpiotrkwiecinskimost likely one of the patches is missing17:00:56
@piotrkwiecinski:matrix.orgpiotrkwiecinskiI guess we'll have to add them to loophp repo right?17:03:06
@drupol:matrix.orgPolIdeally yes19:11:14
@drupol:matrix.orgPol8.2.14 doesn't exists IIRC19:11:22
@piotrkwiecinski:matrix.orgpiotrkwiecinski8.2.14 Released: 21 Dec 202319:19:18
@drupol:matrix.orgPolI probably forgot it perhaps20:04:18
@piotrkwiecinski:matrix.orgpiotrkwiecinskiLooks like php core team too as they haven't patched it :)20:04:51
@piotrkwiecinski:matrix.orgpiotrkwiecinskiphp 8.1.28 builds in php-src-nix20:05:41
@piotrkwiecinski:matrix.orgpiotrkwiecinskiI'm testing 8.1.18 but looks like 8.1.x branch should be fine now20:06:09
@piotrkwiecinski:matrix.orgpiotrkwiecinskiI'll probably have some time next week to play around with stabilizing other branches20:07:29
@drupol:matrix.orgPoloki20:16:45
16 Aug 2024
@nebucatnetzer13:matrix.orgnebucatnetzer13 joined the room.06:51:09
@nebucatnetzer13:matrix.orgnebucatnetzer13

Hi everyone, does someone have a public project where phpunit is working and the dev dependencies aren't part of the final derivation?
I think I know how I would package a whole project by itself but I would like to achieve the following:

  1. Load Nix Shell and an additional container image for the DB
  2. Run unittests
06:53:18
@nebucatnetzer13:matrix.orgnebucatnetzer13 *

Hi everyone, does someone have a public project where phpunit is working and the dev dependencies aren't part of the final derivation?
I think I know how I would package a whole project by itself but I would like to achieve the following:

  1. Load Nix Shell and an additional container image for the DB
  2. Run unittests
  3. Create final derivation/container image
06:53:41
@nebucatnetzer13:matrix.orgnebucatnetzer13 *

Hi everyone, does someone have a public project where phpunit is working and the dev dependencies aren't part of the final derivation?
I think I know how I would package a whole project by itself but I would like to achieve the following:

  1. Load Nix Shell and an additional container image for the DB
  2. Run unittests
  3. Create final derivation/container image without dev dependencies

With poetry2nix this is quite easy to do but I haven't figured out how to do it with PHP so that I don't have to redownload all the composer dependencies every time.
With a container based approach I have a base image which contains the production dependencies and for the unittests I build an image on top of that, that contains the dev dependencies as well.

06:55:45
@drupol:matrix.orgPolLet me find you an example... 07:22:00
@drupol:matrix.orgPolThis might help you: https://github.com/loophp/nix-shell/blob/master/templates/basic/flake.nix you have a couple of PHP apps packaged.07:22:45
@drupol:matrix.orgPolAnd here you have an example on how to add a flake.nix to the symfony/demo project: https://github.com/drupol/symfony-demo/pull/107:23:35
@drupol:matrix.orgPolOh and it builds the OCI image too07:23:50
@drupol:matrix.orgPolyou should have everything you need there07:24:01
@drupol:matrix.orgPolForget what I just said, that last example if very outdated.07:25:14
@nebucatnetzer13:matrix.orgnebucatnetzer13composer-plugin-nixify looks interesting thank you. With the first examples I see that it gets phpunit from Nixpkgs, I could do that but I would prefer to let composer deal with the PHP packages if possible. That way Nix isn't a "hard dependency". 07:31:15
@nebucatnetzer13:matrix.orgnebucatnetzer13
In reply to @drupol:matrix.org
Forget what I just said, that last example if very outdated.
Ah to bad :)
07:31:26
@drupol:matrix.orgPol Then just use buildComposerProject builder from nixpkgs and let phpunit in the require-dev section. 07:32:22

Show newer messages


Back to Room ListRoom Version: 6