From 797748a20ced3327ff5afaaf667697d20418c9d7 Mon Sep 17 00:00:00 2001 From: NotAShelf Date: Thu, 18 Dec 2025 16:36:42 +0300 Subject: [PATCH] flake: use the correct formatter for Nix; suppress deno output Signed-off-by: NotAShelf Change-Id: Ic39d3a2448cd4b4f241909779f7ead596a6a6964 --- flake.nix | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/flake.nix b/flake.nix index 9a7fc438..becc838c 100644 --- a/flake.nix +++ b/flake.nix @@ -71,10 +71,12 @@ text = '' # Find Nix files in the tree and format them with Alejandra - fd "$@" -t f -e nix -x nixfmt -q '{}' + echo "Formatting Nix files" + fd "$@" -t f -e nix -x alejandra -q '{}' # Same for Markdown files, but with deno - fd "$@" -t f -e md -x deno fmt '{}' + echo "Formatting Markdown files" + fd "$@" -t f -e md -x deno fmt -q '{}' ''; }; @@ -93,7 +95,7 @@ # This can be initiated with `nix build .#checks..md-fmt` # or with `nix flake check` md-fmt = pkgs.runCommand "md-fmt-check" {nativeBuildInputs = [pkgs.deno];} '' - deno fmt --check ${self} --ext md < /dev/null + deno fmt --check ${self} --ext md touch $out ''; };