this repo has no description

chore: add nix fmt check (#23)

authored by tghanken.tngl.sh and committed by GitHub 256aeb00 9be244ac

Changed files
+19
+19
flake.nix
··· 69 69 perSystem = { 70 70 pkgs, 71 71 system, 72 + lib, 72 73 ... 73 74 }: { 75 + checks = let 76 + fs = lib.fileset; 77 + sourceFiles = fs.unions [ 78 + (fs.fileFilter (file: file.hasExt "nix") ./.) 79 + ]; 80 + in { 81 + nix-fmt-check = pkgs.stdenv.mkDerivation { 82 + name = "nix-fmt-check"; 83 + src = fs.toSource { 84 + root = ./.; 85 + fileset = sourceFiles; 86 + }; 87 + installPhase = '' 88 + ${pkgs.alejandra}/bin/alejandra -c . 89 + touch $out 90 + ''; 91 + }; 92 + }; 74 93 formatter = pkgs.alejandra; 75 94 devShells.default = pkgs.mkShell { 76 95 packages = with pkgs; [