Add a PHP 7.4 devshell

This commit is contained in:
Oliver Davies 2025-06-28 11:59:34 +01:00
parent 154ebacde5
commit a7e145a3af
3 changed files with 46 additions and 1 deletions

25
modules/php74.nix Normal file
View file

@ -0,0 +1,25 @@
{ inputs, ... }:
{
perSystem =
{ pkgs, system, ... }:
let
pkgs-php74 = import inputs.nixpkgs-php74 { inherit system; };
php = pkgs-php74.php74;
phpPackages = pkgs-php74.php74Packages;
in
{
devShells.php74 = pkgs.mkShell {
packages = with pkgs; [
php
phpPackages.composer
phpactor
];
shellHook = ''
php --version
'';
};
};
}