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 let
emacsPkg = (if (pkgs.system == "x86_64-linux") then emacsPkg =
pkgs.emacs-pgtk if (pkgs.system == "x86_64-linux") then
else pkgs.emacs-pgtk
pkgs.emacs); else
pkgs.emacs;
in in
emacsWithPackagesFromUsePackage { emacsWithPackagesFromUsePackage {
config = ../configs/emacs.org; config = ../configs/emacs.org;

View File

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