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

@ -14,7 +14,7 @@
packages = [
php
phpPackages.composer
] ++ commonPhpPackages pkgs;
] ++ commonPhpPackages pkgs system;
shellHook = ''
composer -V

View file

@ -2,13 +2,13 @@
{
perSystem =
{ pkgs, ... }:
{ pkgs, system, ... }:
{
devShells.php81 = pkgs.mkShell {
packages = with pkgs; [
php81
php81Packages.composer
] ++ commonPhpPackages pkgs;
] ++ commonPhpPackages pkgs system;
shellHook = ''
composer -V

View file

@ -2,13 +2,13 @@
{
perSystem =
{ pkgs, ... }:
{ pkgs, system, ... }:
{
devShells.php82 = pkgs.mkShell {
packages = with pkgs; [
php82
php82Packages.composer
] ++ commonPhpPackages pkgs;
] ++ commonPhpPackages pkgs system;
shellHook = ''
composer -V

View file

@ -2,13 +2,13 @@
{
perSystem =
{ pkgs, ... }:
{ pkgs, system, ... }:
{
devShells.php83 = pkgs.mkShell {
packages = with pkgs; [
php83
php83Packages.composer
] ++ commonPhpPackages pkgs;
] ++ commonPhpPackages pkgs system;
shellHook = ''
composer -V

View file

@ -2,13 +2,13 @@
{
perSystem =
{ pkgs, ... }:
{ pkgs, system, ... }:
{
devShells.php84 = pkgs.mkShell {
packages = with pkgs; [
php84
php84Packages.composer
] ++ commonPhpPackages pkgs;
] ++ commonPhpPackages pkgs system;
shellHook = ''
composer -V