!jngDrdMgndWibPCYsR:nixos.org

Nix PHP

74 Members
A room for PHP developers running on Nix21 Servers

Load older messages


SenderMessageTime
18 Apr 2023
@drupol:matrix.orgPolLooks like its broken11:34:22
@drupol:matrix.orgPol philipp: it works 11:44:05
@drupol:matrix.orgPolimage.png
Download image.png
11:44:12
@drupol:matrix.orgPol I just need to fix a small issue in build-php.nix and it's ok. 11:44:27
@philipp:xndr.dephilippI'll give it a real-world spin but I'm not optimistic. magento will probably start to try writing into a file in the nix store and die.11:45:31
@drupol:matrix.orgPolOk that's another issue. But at least now we have a way to package magento2 :)11:48:11
@drupol:matrix.orgPolOk bug has been fixed in the PR ;)11:50:59
@philipp:xndr.dephilippCool! I'm looking forward to using this tool.13:02:07
@drupol:matrix.orgPolPHP PR: https://github.com/NixOS/nixpkgs/pull/22684513:28:48
@drupol:matrix.orgPolI don't remember who told me to not add the platform meta attribute,13:29:14
@shyim:matrix.orgShyim
In reply to @philipp:xndr.de
I'll give it a real-world spin but I'm not optimistic. magento will probably start to try writing into a file in the nix store and die.
I work for Shopware and we recently started with read-only deployments with Docker. There are so many even composer packages which writes to disk like pdf libraries. I guess read-only will be a thing in future with PHP. Symfony recommends Platform.SH and they do read-only deployments so maybe we have in future every application out of the box compatible as those Hosters require it :)
15:55:20
@shyim:matrix.orgShyim Did someone tried to package Frankenphp with Nix? I don’t really understand the stuff with CGO and PHP dev :D 15:56:05
@drupol:matrix.orgPol

It's raining PHP PRs !

  • https://github.com/NixOS/nixpkgs/pull/226911
  • https://github.com/NixOS/nixpkgs/pull/226908
  • https://github.com/NixOS/nixpkgs/pull/226824
19:31:55
19 Apr 2023
@drupol:matrix.orgPolNope04:15:24
@drupol:matrix.orgPol
In reply to @shyim:matrix.org
I work for Shopware and we recently started with read-only deployments with Docker. There are so many even composer packages which writes to disk like pdf libraries. I guess read-only will be a thing in future with PHP. Symfony recommends Platform.SH and they do read-only deployments so maybe we have in future every application out of the box compatible as those Hosters require it :)
I will try to package Shopware with the new builder once it's done ! Looking forward to push this thing!
04:15:51
@drupol:matrix.orgPol Elis 🌱: Last one! https://github.com/NixOS/nixpkgs/pull/226824 07:53:08
@drupol:matrix.orgPol Elis 🌱: https://github.com/NixOS/nixpkgs/pull/227066#pullrequestreview-1392278346 15:19:50
@drupol:matrix.orgPolMerci ❤️15:33:08
@shyim:matrix.orgShyimI packaged Roadrunner for Nix. Looking for reviewers :) https://github.com/NixOS/nixpkgs/pull/22714421:41:57
21 Apr 2023
@drupol:matrix.orgPol Hey PHP !
Yesterday I finally made the changes in this PR https://github.com/NixOS/nixpkgs/pull/225401 to enable hooks.
That was quite complicated for me since I was not aware of those hooks in Nix overall, so, a lot of back and forth with some community members to tell me where to look for.
The PR has been updated with those hooks now and it works like before.
There is only one derivation which is broken "#wp-cli". Apparently, it requires wrapProgram in its postInstall hook, but it cannot find it despite it is in nativeBuildInputs. I guess it's a minor issue, but I'll make a pause today on that thing because I've been spending too much time on it lately.
Feel free to try the branch and eventually help me with that wp-cli derivation!
Enjoy your friday all !
07:25:39
@drupol:matrix.orgPol Thanks Jan Tojnar going to try your suggestion ! 07:32:09
@drupol:matrix.orgPolThanks, it fixed the issue :)07:39:47
@drupol:matrix.orgPolYou're amazing, thanks !07:39:51
@drupol:matrix.orgPolPR is back to green ! :)07:52:29
@jtojnar:matrix.orgJan Tojnar Pol: you will also want to do previousAttrs.buildPhase or ''runHook ...'' for the phases 07:54:01
@drupol:matrix.orgPolOooh ! you're right.07:54:16
@drupol:matrix.orgPolAs usual.07:54:17
@drupol:matrix.orgPolGoing to do it now.07:54:20
@jtojnar:matrix.orgJan Tojnarthe empty phases are a bit ugly but I do not see a way around them07:55:01
@drupol:matrix.orgPol We could override them in the composer-setup-hook.sh I guess? 07:55:26

Show newer messages


Back to Room ListRoom Version: 6