refactor(nix): improve formatting check
All checks were successful
Check Formatting of Files / Check-Formatting (push) Successful in 1m2s

This commit is contained in:
Price Hiller 2024-06-28 03:22:50 -05:00
parent aaaa4e30f5
commit cc8a17c593
Signed by: Price
GPG Key ID: C3FADDE7A8534BEB

View File

@ -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
'';
});