use nixfmt-tree instead of calling the nixfmt-rfc-style directly (#2928)

as of nix 2.25.0, `nix fmt` will not automatically recurse through
nix files so `nixfmt-rfc-style` will format from stdin instead.

see: https://github.com/NixOS/nix/pull/11438

this issue https://github.com/NixOS/nixfmt/issues/273 recommends that
we use `nixfmt-tree` which calls `treefmt` in the backend with a
minimal configuration for nix
pull/2929/head
William Tan 8 months ago committed by GitHub
parent deb8c43fa3
commit e02396a1c9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -248,6 +248,6 @@
isLLDB = true; isLLDB = true;
} }
); );
formatter = forAllSystems (system: pkgsBySystem.${system}.nixfmt-rfc-style); formatter = forAllSystems (system: pkgsBySystem.${system}.nixfmt-tree);
}; };
} }

Loading…
Cancel
Save