Add flake.nix with PHP 8.2 and Composer

This commit is contained in:
Oliver Davies 2023-12-25 20:48:27 +00:00
commit bbbf284f92
3 changed files with 134 additions and 0 deletions

19
flake.nix Normal file
View file

@ -0,0 +1,19 @@
{
inputs = {
devshell.url = "github:numtide/devshell";
nixpkgs.url = "github:NixOS/nixpkgs/nixos-23.11";
};
outputs = inputs@{ flake-parts, ... }:
flake-parts.lib.mkFlake { inherit inputs; } {
imports = [ inputs.devshell.flakeModule ];
systems = [ "x86_64-linux" ];
perSystem = { config, self', inputs', pkgs, system, ... }: {
devshells.default = {
packages = with pkgs; [ "php82" "php82Packages.composer" ];
};
};
};
}