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
This commit is contained in:
Robert Hensing 2025-12-09 23:00:05 +01:00
parent 1bb495190a
commit 41a71b8e34

View file

@ -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