Add a Nix Flake for local development

This commit is contained in:
Oliver Davies 2023-12-13 07:02:02 +00:00
parent d763af36e0
commit 5d16b3a232
3 changed files with 138 additions and 0 deletions

23
flake.nix Normal file
View file

@ -0,0 +1,23 @@
{
description = "Gmail Filter Builder";
inputs = {
devshell.url = "github:numtide/devshell";
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
};
outputs = inputs@{ flake-parts, ... }:
flake-parts.lib.mkFlake { inherit inputs; } {
imports = [ inputs.devshell.flakeModule ];
systems = [ "x86_64-linux" ];
perSystem = { config, self', inputs', pkgs, system, ... }: {
formatter = pkgs.nixpkgs-fmt;
devshells.default = {
packages = with pkgs; [ "php81" "php81Packages.composer" ];
};
};
};
}