From f528bd1b1435fef8185c106b4f1e17d64dd5bf2d Mon Sep 17 00:00:00 2001 From: seth Date: Wed, 6 Sep 2023 10:36:50 -0400 Subject: big update woo --- flake.nix | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'flake.nix') 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;}; }); -- cgit v1.2.3