summaryrefslogtreecommitdiff
path: root/flake.nix
diff options
context:
space:
mode:
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix7
1 files changed, 7 insertions, 0 deletions
diff --git a/flake.nix b/flake.nix
index 561d71a..37c8ebc 100644
--- a/flake.nix
+++ b/flake.nix
@@ -20,6 +20,13 @@
forAllSystems = fn: lib.genAttrs systems (sys: fn nixpkgs.legacyPackages.${sys});
in {
+ checks = forAllSystems (pkgs: {
+ stylua = pkgs.runCommand "stylua-check" {nativeBuildInputs = [pkgs.stylua];} ''
+ stylua -c ${self}
+ touch $out
+ '';
+ });
+
devShells = forAllSystems (pkgs: {
default = import ./shell.nix {inherit pkgs;};
});