Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -387,6 +387,7 @@ use nix
- [deadnix](https://github.com/astro/deadnix)
- [flake-checker](https://github.com/DeterminateSystems/flake-checker)
- [nil](https://github.com/oxalica/nil)
- [nixf-diagnose](https://github.com/inclyc/nixf-diagnose)
- [nixfmt](https://github.com/NixOS/nixfmt/) (supports `nixfmt` >=v1.0)
- [nixfmt-classic](https://github.com/NixOS/nixfmt/tree/v0.6.0)
- [nixfmt-rfc-style](https://github.com/NixOS/nixfmt/)
Expand Down
14 changes: 14 additions & 0 deletions modules/hooks.nix
Original file line number Diff line number Diff line change
Expand Up @@ -972,6 +972,12 @@ in
imports = [ hookModule ];
};
};
nixf-diagnose = mkOption {
description = "nixf-diagnose hook";
type = types.submodule {
imports = [ hookModule ];
};
};
nixfmt = mkOption {
description = "nixfmt hook";
visible = false;
Expand Down Expand Up @@ -3456,6 +3462,14 @@ lib.escapeShellArgs (lib.concatMap (ext: [ "--ghc-opt" "-X${ext}" ]) hooks.fourm
builtins.toString script;
files = "\\.nix$";
};
nixf-diagnose =
{
name = "nixf-diagnose";
description = "wrapper for nixf-tidy.";
package = tools.nixf-diagnose;
entry = "${hooks.nixf-diagnose.package}/bin/nixf-diagnose";
files = "\\.nix$";
};
nixfmt =
{
name = "nixfmt";
Expand Down
2 changes: 2 additions & 0 deletions nix/tools.nix
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
, mdsh
, nbstripout
, nil
, nixf-diagnose
, nixfmt
, nixfmt-classic ? null
, nixfmt-rfc-style ? null
Expand Down Expand Up @@ -162,6 +163,7 @@ in
mdsh
nbstripout
nil
nixf-diagnose
nixpkgs-fmt
opentofu
ormolu
Expand Down
Loading