summaryrefslogtreecommitdiff
path: root/flake.nix
diff options
context:
space:
mode:
authorseth <[email protected]>2023-09-06 10:36:50 -0400
committerseth <[email protected]>2023-09-06 10:48:17 -0400
commitf528bd1b1435fef8185c106b4f1e17d64dd5bf2d (patch)
treeddfd5851481c492b56bcfab66479e8d6cd0ef5a1 /flake.nix
parent4f2a2d2b13a1c0bfe2a9234679b9a0b9d1e4b83f (diff)
big update woo
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;};
});