Add a PHP 7.4 devshell
This commit is contained in:
parent
154ebacde5
commit
a7e145a3af
3 changed files with 46 additions and 1 deletions
25
modules/php74.nix
Normal file
25
modules/php74.nix
Normal 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
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue