Add composer2nix to all PHP dev shells

This commit is contained in:
Oliver Davies 2025-08-15 17:04:14 +01:00
parent 63c58e5c4e
commit 3572510177
8 changed files with 40 additions and 10 deletions

View file

@ -1,5 +1,8 @@
{
inputs = {
composer2nix.flake = false;
composer2nix.url = "github:svanderburg/composer2nix";
devshell.inputs.nixpkgs.follows = "nixpkgs";
devshell.url = "github:numtide/devshell";
@ -19,7 +22,16 @@
systems = [ "x86_64-linux" ];
_module.args = {
commonPhpPackages = pkgs: with pkgs; [ phpactor ];
commonPhpPackages =
pkgs: system:
with pkgs;
let
composer2nix = import inputs.composer2nix { inherit system pkgs; };
in
[
composer2nix
phpactor
];
};
imports = [