From 38347eb571b750ff21c0c5150743e7885ec1a279 Mon Sep 17 00:00:00 2001 From: Graham McIntire Date: Sat, 7 Feb 2026 12:34:58 -0600 Subject: [PATCH] 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. --- flake.nix | 2 +- nix/shell.nix | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/flake.nix b/flake.nix index 82a91350..1a287437 100644 --- a/flake.nix +++ b/flake.nix @@ -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 diff --git a/nix/shell.nix b/nix/shell.nix index 073d297d..0622223e 100644 --- a/nix/shell.nix +++ b/nix/shell.nix @@ -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