nix: add flake with dev shell

This commit is contained in:
Matthew Penner 2022-10-24 09:48:30 -06:00
parent e49ba65709
commit d31ece1c75
No known key found for this signature in database
5 changed files with 90 additions and 5 deletions

17
shell.nix Normal file
View file

@ -0,0 +1,17 @@
{pkgs ? import <nixpkgs> {}}:
with pkgs;
mkShell rec {
buildInputs = [
alejandra
(php81.buildEnv {
extensions = ({ enabled, all }: enabled ++ (with all; [
redis
xdebug
]));
extraConfig = ''
xdebug.mode=debug
'';
})
php81Packages.composer
];
}