fix: Correct pre-commit-hooks integration

Pass pre-commit-hooks.lib.${system} correctly from flake.nix
to shell.nix, fixing the 'attribute lib missing' error.
This commit is contained in:
Graham McIntire 2026-02-07 12:34:58 -06:00
parent 5c71205aa3
commit 38347eb571
No known key found for this signature in database
2 changed files with 2 additions and 2 deletions

View file

@ -64,7 +64,7 @@
# Development shell with PostgreSQL, Redis, LSPs, formatters
devShells.default = pkgs.callPackage ./nix/shell.nix {
inherit (inputs') pre-commit-hooks;
pre-commit-hooks = inputs.pre-commit-hooks.lib.${system};
};
# Nix formatter for flake files

View file

@ -159,7 +159,7 @@ let
'';
# Pre-commit hooks configuration
pre-commit-check = pre-commit-hooks.lib.run {
pre-commit-check = pre-commit-hooks.run {
src = ../.;
hooks = {
# Elixir formatting