From c62dabf9596f4f0530b1fa06d8b43f8210faf73c Mon Sep 17 00:00:00 2001 From: Robert Hensing Date: Sat, 17 Jan 2026 16:27:02 +0100 Subject: [PATCH] dev: pre-commit.{installationScript -> shellHook} Installs the file and pre-commit command on PATH in one go. --- dev/flake-module.nix | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/dev/flake-module.nix b/dev/flake-module.nix index 0cbaa8f..da4f1d9 100644 --- a/dev/flake-module.nix +++ b/dev/flake-module.nix @@ -81,7 +81,6 @@ config.packages.nix ]; nativeBuildInputs = [ - pkgs.pre-commit config.treefmt.build.wrapper pkgs.rust-analyzer @@ -98,7 +97,7 @@ # pkgs.cargo-valgrind ]; shellHook = '' - ${config.pre-commit.installationScript} + ${config.pre-commit.shellHook} echo 1>&2 "Welcome to the development shell!" ''; # rust-analyzer needs a NIX_PATH for some reason