mirror of
https://github.com/opdavies/gmail-filter-builder.git
synced 2025-11-17 15:28:45 +00:00
Add a Nix Flake for local development
This commit is contained in:
parent
d763af36e0
commit
5d16b3a232
3 changed files with 138 additions and 0 deletions
23
flake.nix
Normal file
23
flake.nix
Normal 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" ];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue