templates: use 'pre-commit.enabledPackages'

This commit is contained in:
Bruno BELANYI 2025-04-05 18:29:51 +01:00
parent 53569f17a6
commit 418494004b
3 changed files with 9 additions and 10 deletions

View file

@ -92,12 +92,12 @@
devShells = { devShells = {
default = pkgs.mkShell { default = pkgs.mkShell {
inputsFrom = with self.packages.${system}; [ inputsFrom = [
project self.packages.${system}.project
]; ];
packages = with pkgs; [ packages = with pkgs; [
clang-tools self.checks.${system}.pre-commit.enabledPackages
]; ];
inherit (pre-commit) shellHook; inherit (pre-commit) shellHook;

View file

@ -92,12 +92,12 @@
devShells = { devShells = {
default = pkgs.mkShell { default = pkgs.mkShell {
inputsFrom = with self.packages.${system}; [ inputsFrom = [
project self.packages.${system}.project
]; ];
packages = with pkgs; [ packages = with pkgs; [
clang-tools self.checks.${system}.pre-commit.enabledPackages
]; ];
inherit (pre-commit) shellHook; inherit (pre-commit) shellHook;

View file

@ -88,14 +88,13 @@
devShells = { devShells = {
default = pkgs.mkShell { default = pkgs.mkShell {
inputsFrom = with self.packages.${system}; [ inputsFrom = [
project self.packages.${system}.project
]; ];
packages = with pkgs; [ packages = with pkgs; [
clippy
rust-analyzer rust-analyzer
rustfmt self.checks.${system}.pre-commit.enabledPackages
]; ];
RUST_SRC_PATH = "${pkgs.rust.packages.stable.rustPlatform.rustLibSrc}"; RUST_SRC_PATH = "${pkgs.rust.packages.stable.rustPlatform.rustLibSrc}";