treefmt: fix statix fmt

This commit is contained in:
Aaron Bieber 2024-11-10 06:52:40 -07:00
parent b973fda862
commit 8f97b01e8b
No known key found for this signature in database
2 changed files with 10 additions and 6 deletions

View File

@ -3,10 +3,11 @@
, ...
}:
let
emacsPkg = (if (pkgs.system == "x86_64-linux") then
emacsPkg =
if (pkgs.system == "x86_64-linux") then
pkgs.emacs-pgtk
else
pkgs.emacs);
pkgs.emacs;
in
emacsWithPackagesFromUsePackage {
config = ../configs/emacs.org;

View File

@ -1,6 +1,9 @@
[formatter.statix]
command = "statix"
options = ["check"]
#command = "statix"
#options = ["check"]
command = "sh"
options = ["-euc", "for file in \"$@\"; do statix check \"$file\"; done"]
includes = [ "*.nix" ]
priority = 1
[formatter.deadnix]