This commit is contained in:
Barrett Ruth 2026-03-04 14:11:41 -05:00
parent a4386c9f4d
commit f18dfa0a8d
Signed by: barrett
GPG key ID: A6C96C9349D2FC81
2 changed files with 6 additions and 1 deletions

View file

@ -13,9 +13,12 @@
... ...
}: }:
let let
forEachSystem = f: nixpkgs.lib.genAttrs (import systems) (system: f nixpkgs.legacyPackages.${system}); forEachSystem =
f: nixpkgs.lib.genAttrs (import systems) (system: f nixpkgs.legacyPackages.${system});
in in
{ {
formatter = forEachSystem (pkgs: pkgs.nixfmt-tree);
devShells = forEachSystem (pkgs: { devShells = forEachSystem (pkgs: {
default = pkgs.mkShell { default = pkgs.mkShell {
packages = [ packages = [

View file

@ -4,4 +4,6 @@ set -eu
nix develop --command stylua --check . nix develop --command stylua --check .
git ls-files '*.lua' | xargs nix develop --command selene --display-style quiet git ls-files '*.lua' | xargs nix develop --command selene --display-style quiet
nix develop --command prettier --check . nix develop --command prettier --check .
nix fmt
git diff --exit-code -- '*.nix'
nix develop --command lua-language-server --check . --checklevel=Warning nix develop --command lua-language-server --check . --checklevel=Warning