14 Aug 2024 |
piotrkwiecinski | I was looking at some errors in your build | 16:57:03 |
piotrkwiecinski | https://github.com/php/php-src/commit/e2d97314ab342d434e778cd00a2f34e4bdb07664 | 16:57:06 |
piotrkwiecinski | I don't see a backport to 8.2.14 in the list of tags | 16:57:25 |
piotrkwiecinski | https://github.com/loophp/php-src-nix/actions/runs/10364035720/job/28688702715 | 16:58:04 |
piotrkwiecinski | 8.2.13 and lower seem to fail due to issues with libxml 2.13 | 16:59:57 |
piotrkwiecinski | same applies to 8.3.0-8.3.3 | 17:00:45 |
piotrkwiecinski | most likely one of the patches is missing | 17:00:56 |
piotrkwiecinski | I guess we'll have to add them to loophp repo right? | 17:03:06 |
Pol | Ideally yes | 19:11:14 |
Pol | 8.2.14 doesn't exists IIRC | 19:11:22 |
piotrkwiecinski | 8.2.14
Released: 21 Dec 2023 | 19:19:18 |
Pol | I probably forgot it perhaps | 20:04:18 |
piotrkwiecinski | Looks like php core team too as they haven't patched it :) | 20:04:51 |
piotrkwiecinski | php 8.1.28 builds in php-src-nix | 20:05:41 |
piotrkwiecinski | I'm testing 8.1.18 but looks like 8.1.x branch should be fine now | 20:06:09 |
piotrkwiecinski | I'll probably have some time next week to play around with stabilizing other branches | 20:07:29 |
Pol | oki | 20:16:45 |
16 Aug 2024 |
| nebucatnetzer13 joined the room. | 06:51:09 |
nebucatnetzer13 | 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:
- Load Nix Shell and an additional container image for the DB
- Run unittests
| 06:53:18 |
nebucatnetzer13 | * 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:
- Load Nix Shell and an additional container image for the DB
- Run unittests
- Create final derivation/container image
| 06:53:41 |
nebucatnetzer13 | * 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:
- Load Nix Shell and an additional container image for the DB
- Run unittests
- 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 |
Pol | Let me find you an example... | 07:22:00 |
Pol | This 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 |
Pol | And here you have an example on how to add a flake.nix to the symfony/demo project: https://github.com/drupol/symfony-demo/pull/1 | 07:23:35 |
Pol | Oh and it builds the OCI image too | 07:23:50 |
Pol | you should have everything you need there | 07:24:01 |
Pol | Forget what I just said, that last example if very outdated. | 07:25:14 |
nebucatnetzer13 | composer-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 | In reply to @drupol:matrix.org Forget what I just said, that last example if very outdated. Ah to bad :) | 07:31:26 |
Pol | Then just use buildComposerProject builder from nixpkgs and let phpunit in the require-dev section. | 07:32:22 |