!jngDrdMgndWibPCYsR:nixos.org

Nix PHP

67 Members
A room for PHP developers running on Nix20 Servers

You have reached the beginning of time (for this room).


SenderMessageTime
16 Aug 2024
@drupol:matrix.orgPolThat's the easiest thing to do in Nix I believe.08:23:56
@nebucatnetzer13:matrix.orgnebucatnetzer13yeah but especially with the content of composer.lock08:24:36
@drupol:matrix.orgPolmmh I don't think it has been done yet08:25:05
@nebucatnetzer13:matrix.orgnebucatnetzer13ah okay, because the rest I have already working08:25:29
@drupol:matrix.orgPol But you'll find all the most used tools already in nixpkgs (phpunit, psalm, phpstan, etc etc) 08:25:42
@drupol:matrix.orgPolI know that you could do 2 derivations08:26:34
@drupol:matrix.orgPolFor example:08:26:38
@drupol:matrix.orgPol
  1. my-app -> would be made with buildComposerProject, using regular attributes. This is ready to go in prod if needed, it doesn't contain any require-dev stuff.
08:27:14
@drupol:matrix.orgPol
  1. my-app-dev -> would also be made with buildComposerProject but this time, you can add an attribute that will install the require-dev dependencies.
08:27:54
@drupol:matrix.orgPol Then you create a devshell and use the attribute inputsFrom = [ my-app-dev ]; 08:28:12
@drupol:matrix.orgPolThat might work.08:28:22

Show newer messages


Back to Room ListRoom Version: 6