File tree 2 files changed +9
-0
lines changed
2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -2894,6 +2894,13 @@ lib.escapeShellArgs (lib.concatMap (ext: [ "--ghc-opt" "-X${ext}" ]) hooks.ormol
2894
2894
builtins . toString script ;
2895
2895
files = "\\ .nix$" ;
2896
2896
} ;
2897
+ nix-fmt =
2898
+ {
2899
+ name = "nix-fmt" ;
2900
+ description = "Format Nix files using the formatter specified in your flake." ;
2901
+ package = tools . nix ;
2902
+ entry = "${ hooks . nix-fmt . package } /bin/nix fmt" ;
2903
+ } ;
2897
2904
# nixfmt was renamed to nixfmt-classic.
2898
2905
# The hook has been deprecated to free up the name for when the new RFC-style nixfmt becomes stable.
2899
2906
nixfmt = nixfmt-classic ;
Original file line number Diff line number Diff line change 44
44
, mdl
45
45
, mdsh
46
46
, nil
47
+ , nix
47
48
, nixfmt
48
49
, nixfmt-classic ? null
49
50
, nixfmt-rfc-style ? null
134
135
mdl
135
136
mdsh
136
137
nil
138
+ nix
137
139
nixpkgs-fmt
138
140
ormolu
139
141
pre-commit-hook-ensure-sops
You can’t perform that action at this time.
0 commit comments