From 25f53d8ab5a923df79021fdd076e49f3fe2f3a56 Mon Sep 17 00:00:00 2001 From: Sefa Eyeoglu Date: Sun, 14 May 2023 11:38:48 +0200 Subject: [PATCH] chore(nix): switch to alejandra Signed-off-by: Sefa Eyeoglu --- flake.nix | 38 ++++++++++++++++++++++---------------- 1 file changed, 22 insertions(+), 16 deletions(-) diff --git a/flake.nix b/flake.nix index 02d897e..e935f96 100644 --- a/flake.nix +++ b/flake.nix @@ -11,22 +11,28 @@ }; }; - outputs = { self, nixpkgs, flake-utils, pre-commit-hooks, ... }: - flake-utils.lib.eachDefaultSystem (system: - let pkgs = nixpkgs.legacyPackages.${system}; - in { - checks = { - pre-commit-check = pre-commit-hooks.lib.${system}.run { - src = ./.; - hooks = { - nixfmt.enable = true; - prettier.enable = true; - }; + outputs = { + self, + nixpkgs, + flake-utils, + pre-commit-hooks, + ... + }: + flake-utils.lib.eachDefaultSystem (system: let + pkgs = nixpkgs.legacyPackages.${system}; + in { + checks = { + pre-commit-check = pre-commit-hooks.lib.${system}.run { + src = ./.; + hooks = { + alejandra.enable = true; + prettier.enable = true; }; }; - devShells.default = pkgs.mkShell { - inherit (self.checks.${system}.pre-commit-check) shellHook; - packages = with pkgs; [ yarn ]; - }; - }); + }; + devShells.default = pkgs.mkShell { + inherit (self.checks.${system}.pre-commit-check) shellHook; + packages = with pkgs; [yarn]; + }; + }); }