From 41a71b8e34c0c3a33c6eb9f2010eafac9f363348 Mon Sep 17 00:00:00 2001 From: Robert Hensing Date: Tue, 9 Dec 2025 23:00:05 +0100 Subject: [PATCH] dev: Adjust shell - pre-commit shellHook doesn't add itself to PATH anymore - rust shellHook from module is now picked up by inputsFrom iiuc - add treefmt wrapper --- dev/flake-module.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dev/flake-module.nix b/dev/flake-module.nix index 504a523..ff31f41 100644 --- a/dev/flake-module.nix +++ b/dev/flake-module.nix @@ -81,6 +81,9 @@ config.packages.nix ]; nativeBuildInputs = [ + pkgs.pre-commit + config.treefmt.build.wrapper + pkgs.rust-analyzer pkgs.nixfmt-rfc-style pkgs.rustfmt @@ -96,7 +99,6 @@ ]; shellHook = '' ${config.pre-commit.installationScript} - source ${../bindgen-gcc.sh} echo 1>&2 "Welcome to the development shell!" ''; # rust-analyzer needs a NIX_PATH for some reason