!jngDrdMgndWibPCYsR:nixos.org

Nix PHP

75 Members
A room for PHP developers running on Nix22 Servers

Load older messages


SenderMessageTime
14 Apr 2023
@drupol:matrix.orgPolYes it's only on Darwin19:41:58
@drupol:matrix.orgPolBut it was working fine before I switched to composer source.19:42:12
@jtojnar:matrix.orgJan Tojnarso that sounds like the famous "darwin does not support scripts in shebang" issue19:42:14
@drupol:matrix.orgPolAaarghfuck19:42:21
@jtojnar:matrix.orgJan Tojnarpreviously it worked because we did not patch the shebangs but created an independent wrapper script that ran php with the program as argument19:44:13
@drupol:matrix.orgPolDo you recommend something for such issue? What would be the best approach ?19:44:58
@drupol:matrix.orgPolDoing a wrapper as well ?19:45:04
@jtojnar:matrix.orgJan Tojnarit might be easier to just use binary wrappers in php's generic.nix19:45:44
@jtojnar:matrix.orgJan Tojnarthen it should be usable in shebangs just fine19:45:54
@drupol:matrix.orgPolwhot ?!19:46:06
@jtojnar:matrix.orgJan Tojnarreplace makeWrapper with makeBinaryWrapper19:46:21
@drupol:matrix.orgPolOh it's not done yet, going to do it and test.19:46:37
@jtojnar:matrix.orgJan Tojnar also for the installation into $out/bin, instead of manual symlinking, is there a way to convince composer install to create the links there instead of in vendor/.bin? Then we would not even need to bother with postInstall. 19:48:13
@drupol:matrix.orgPolLet's do this fine tuning later on19:48:45
@drupol:matrix.orgPolI want to make sure that I'm doing something stupid in this PR19:48:58
@drupol:matrix.orgPolI'm pretty excited about it19:49:07
@drupol:matrix.orgPol Jan Tojnar: THANKS ! It solved the issue :) 19:52:10
15 Apr 2023
@drupol:matrix.orgPol I replace most of PHP PHAR distribution derivation with their source. The only remaining one is psalm, I can't get it working. 17:06:26
@drupol:matrix.orgPolFind the PR at https://github.com/NixOS/nixpkgs/pull/22540117:07:08
@drupol:matrix.orgPolReviews are welcome17:07:17
@drupol:matrix.orgPol There is also a remark about deployer in the OP message. 17:07:37
@drupol:matrix.orgPol Jan Tojnar: unable to use the tag in `src` for deployer. It's missing from the repo. 18:07:28
@jtojnar:matrix.orgJan Tojnar Pol: notice the ^ 18:07:58
@drupol:matrix.orgPolOmg18:08:04
@drupol:matrix.orgPolSo smart18:08:12
@drupol:matrix.orgPolWill do it18:08:15
@drupol:matrix.orgPolAfter lunch.18:08:21
@drupol:matrix.orgPolFixed !19:04:44
@jtojnar:matrix.orgJan Tojnar Pol: regarding the programs, https://getcomposer.org/doc/articles/vendor-binaries.md#can-vendor-binaries-be-installed-somewhere-other-than-vendor-bin- 19:18:08
@drupol:matrix.orgPolyes?19:18:17

Show newer messages


Back to Room ListRoom Version: 6