!jngDrdMgndWibPCYsR:nixos.org

Nix PHP

72 Members
A room for PHP developers running on Nix21 Servers

Load older messages


SenderMessageTime
15 Apr 2023
@drupol:matrix.orgPolI'll fix this22:34:54
@tgerbet:matrix.orgtgerbet * The only exception besides Phing in the list seems to be deployerphp/deploy but it seems it is only because the composer.lock was not removed from a previous iteration22:35:04
@drupol:matrix.orgPolNice catch though22:36:42
16 Apr 2023
@drupol:matrix.orgPol
In reply to @tgerbet:matrix.org
The only exception besides Phing in the list seems to be deployerphp/deploy but it seems it is only because the composer.lock was not removed from a previous iteration
Job done.
09:11:36
@drupol:matrix.orgPol
In reply to @jtojnar:matrix.org
buildPhpProject would basically become stdenv.mkDerivation wrapper with composerSetupHook in nativeBuildInputs and setting composerDeps to the result of buildComposerVendorDir function, which the setup hook would then use
So, the idea is to create a function for building only the vendor dir ?
09:13:00
@jtojnar:matrix.orgJan Tojnar Pol: yup, so that it can also be used when buildPhpPackage cannot be used 15:19:06
@drupol:matrix.orgPolOk. Will do.15:36:26
@drupol:matrix.orgPolBut that function will only do the `composer --download-only` then ?15:41:06
@jtojnar:matrix.orgJan Tojnaryup15:47:42
@jtojnar:matrix.orgJan Tojnar Pol: look at cargoSetupHook for an example: https://nixos.org/manual/nixpkgs/stable/#python-package-using-setuptools-rust 15:47:59
@jtojnar:matrix.orgJan Tojnar cargoSetupHook does the second part 15:48:26
@jtojnar:matrix.orgJan Tojnar * Pol: look at fetchCargoTarball for an example: https://nixos.org/manual/nixpkgs/stable/#python-package-using-setuptools-rust 15:48:48
@drupol:matrix.orgPolOk. Will try.15:50:30
@drupol:matrix.orgPol
In reply to @jtojnar:matrix.org
cargoSetupHook does the second part
Do we need bash scripts just like for cargoSetupHook ?
16:29:26
@jtojnar:matrix.orgJan Tojnaryup16:29:53
@jtojnar:matrix.orgJan Tojnarbasically just extract the stuff you have in phases now16:30:17
@drupol:matrix.orgPolI'm not at ease with that yet16:32:14
@drupol:matrix.orgPolI'm failing to see the big picture16:32:25
@drupol:matrix.orgPolDo you mind helping me on that part?16:32:35
@drupol:matrix.orgPolI can grant you access to the PR if you want to.16:32:49
@drupol:matrix.orgPolimage.png
Download image.png
16:40:24
@drupol:matrix.orgPolIs this is what you have in mind?16:40:29
@drupol:matrix.orgPolWith something like this?16:44:53
@drupol:matrix.orgPolimage.png
Download image.png
16:44:56
@jtojnar:matrix.orgJan Tojnar Pol: for simplicity, you could have a single composerSetupHook on Nixpkgs level 17:11:31
@jtojnar:matrix.orgJan Tojnar and then have configure, build and install functions that would replace configurePhase, buildPhase and installPhase respectively 17:12:14
@jtojnar:matrix.orgJan Tojnar plus a second function that would create the vendor variable 17:13:17
@jtojnar:matrix.orgJan Tojnar * plus a second function that would create the vendor variable in your PR 17:13:23
@drupol:matrix.orgPolright right, I'm trying but I can't get it working. I'll retry another day. Help is welcome on this.18:35:52
17 Apr 2023
@drupol:matrix.orgPolPHP Bumps: https://github.com/NixOS/nixpkgs/pull/226605 -> needs review/merge.08:37:41

Show newer messages


Back to Room ListRoom Version: 6