Add initial dev shells

This commit is contained in:
Oliver Davies 2025-06-22 21:08:07 +01:00
commit c12dcc81fa
6 changed files with 90 additions and 0 deletions

31
flake.nix Normal file
View file

@ -0,0 +1,31 @@
{
inputs.nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
outputs =
{ nixpkgs, ... }:
let
system = "x86_64-linux";
pkgs = import nixpkgs { inherit system; };
inherit (pkgs) callPackage;
commonPhpPackages = with pkgs; [
phpactor
];
in
{
devShells.${system} = {
default = pkgs.mkShell {
packages = with pkgs; [ nixd ];
};
nodejs = callPackage ./modules/nodejs.nix { };
php82 = callPackage ./modules/php82.nix { inherit commonPhpPackages; };
php83 = callPackage ./modules/php83.nix { inherit commonPhpPackages; };
};
formatter.${system} = pkgs.nixfmt-rfc-style;
};
}