Skip to content

Commit

Permalink
Merge pull request #435 from loicreynier/feat-flake-checker
Browse files Browse the repository at this point in the history
Add Flake Checker
  • Loading branch information
domenkozar authored Apr 22, 2024
2 parents 524539c + f0dcdc1 commit 6ebeece
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ use nix

- [alejandra](https://github.com/kamadorueda/alejandra)
- [deadnix](https://github.com/astro/deadnix)
- [flake-checker](https://github.com/DeterminateSystems/flake-checker)
- [nil](https://github.com/oxalica/nil)
- [nixfmt](https://github.com/serokell/nixfmt/)
- [nixpkgs-fmt](https://github.com/nix-community/nixpkgs-fmt)
Expand Down
8 changes: 8 additions & 0 deletions modules/hooks.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2239,6 +2239,14 @@ in
"${binPath} --format ${hooks.flake8.settings.format} ${extendIgnoreStr}";
types = [ "python" ];
};
flake-checker = {
name = "flake-checker";
description = "Run health checks on your flake-powered Nix projects.";
package = tools.flake-checker;
entry = "${hooks.flake-checker.package}/bin/flake-checker -f";
files = "(^flake\\.nix$|^flake\\.lock$)";
pass_filenames = false;
};
flynt =
{
name = "flynt";
Expand Down
2 changes: 2 additions & 0 deletions nix/tools.nix
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
, editorconfig-checker
, elixir
, elmPackages
, flake-checker ? null
, fprettify
, git-annex
, gptcommit ? null
Expand Down Expand Up @@ -108,6 +109,7 @@ in
eclint
editorconfig-checker
elixir
flake-checker
fprettify
go
go-tools
Expand Down

0 comments on commit 6ebeece

Please sign in to comment.