Skip to content

Commit

Permalink
Add weeder-nix and precommit check, remove statix.
Browse files Browse the repository at this point in the history
  • Loading branch information
damianfral committed Jul 4, 2024
1 parent c104108 commit 5a66041
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 3 deletions.
26 changes: 25 additions & 1 deletion flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 13 additions & 2 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@
nix-filter.url = "github:numtide/nix-filter";
pre-commit-hooks.url = "github:cachix/pre-commit-hooks.nix";
pre-commit-hooks.inputs.nixpkgs.follows = "nixpkgs";
weeder-nix.url = "github:NorfairKing/weeder-nix";
weeder-nix.inputs = {
nixpkgs.follows = "nixpkgs";
pre-commit-hooks.follows = "pre-commit-hooks";
};
feedback.url = "github:NorfairKing/feedback";
};

Expand Down Expand Up @@ -96,7 +101,6 @@
nil.enable = true;
alejandra.enable = true;
ormolu.enable = true;
statix.enable = true;
};
};
in rec {
Expand Down Expand Up @@ -125,7 +129,14 @@
inherit (precommitCheck) shellHook;
};

checks = {pre-commit-check = precommitCheck;};
checks = {
pre-commit-check = precommitCheck;
weeder-check = inputs.weeder-nix.lib.${system}.makeWeederCheck {
haskellPackages = pkgs.haskellPackages;
packages = ["til"];
reportOnly = true;
};
};
}
);
nixConfig = {
Expand Down

0 comments on commit 5a66041

Please sign in to comment.