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:
parent
5c71205aa3
commit
38347eb571
2 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue