I’m in the NixOS php maintainers team.
- 0 Posts
- 3 Comments
Joined 2 years ago
Cake day: September 2nd, 2023
You are not logged in. If you use a Fediverse account that is able to follow users, you can follow this user.
This is what you want in your
configuration.nix:{ config, pkgs, lib, ... }: let custom-php = pkgs.php82.buildEnv { extensions = ({ enabled, all }: enabled ++ (with all; [ xdebug redis ])); extraConfig = '' memory_limit=2G xdebug.mode=debug ''; }; in { environment.systemPackages = [ custom-php custom-php.packages.composer ]; }Let me know how that works out for you.


Looks like you almost had it figured out.
composerbelongs to thephpPackagesset, an alias forphp.packages, and any package under that set should use thephppackage you specify. This way you can customize thephpconfiguration for various programs.I briefly looked at the documentation and I’m not sure that this is specifically mentioned. Unless I missed it this would be nice to add to our documentation.