diff --git a/nix/checks.nix b/nix/checks.nix index 49b2400..ac33a2f 100644 --- a/nix/checks.nix +++ b/nix/checks.nix @@ -11,13 +11,13 @@ overlays = [inputs.neorocks.overlays.default]; }; - checks.pre-commit = pkgs.writeShellApplication { - name = "pre-commit-check"; + checks.pre-commit = pkgs.writeShellApplication { + name = "pre-commit-check"; - runtimeInputs = [pkgs.pre-commit]; + runtimeInputs = [pkgs.pre-commit]; - text = "pre-commit run --all-files"; - }; + text = "pre-commit run --all-files"; + }; checks.default = pkgs.writeShellApplication { name = "typos-check"; diff --git a/nix/shell.nix b/nix/shell.nix index f5bb212..31087ae 100644 --- a/nix/shell.nix +++ b/nix/shell.nix @@ -1,20 +1,24 @@ -{pkgs, lib, ...}: { +{ + pkgs, + lib, + ... +}: { devShells.default = pkgs.mkShellNoCC { - shellHook = '' - ${lib.getExe pkgs.pre-commit} install - ''; + shellHook = '' + ${lib.getExe pkgs.pre-commit} install + ''; packages = [ pkgs.lua-language-server pkgs.luajitPackages.luacheck - pkgs.luarocks + pkgs.luarocks - pkgs.pre-commit - pkgs.ruby - pkgs.stylua - pkgs.typos - pkgs.yamllint - pkgs.actionlint + pkgs.pre-commit + pkgs.ruby + pkgs.stylua + pkgs.typos + pkgs.yamllint + pkgs.actionlint ]; }; }