From cc8a17c5933c6af2b69d73cdd4864fb0a35a3d24 Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Fri, 28 Jun 2024 03:22:50 -0500 Subject: [PATCH] refactor(nix): improve formatting check --- flake.nix | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/flake.nix b/flake.nix index 1a1d80af..4cfc900e 100644 --- a/flake.nix +++ b/flake.nix @@ -115,14 +115,13 @@ pkgs.runCommand "check-fmt" { buildInputs = with pkgs; [ - findutils + fd (import ./pkgs { inherit pkgs; }).Fmt ]; } '' - set -euo pipefail - cd "${self}" - find . -type f | xargs Fmt + set -eEuo pipefail + fd --exec-batch=Fmt touch $out ''; });