feat: add pre-commit to shellHook

Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2701>
This commit is contained in:
Kasper Seweryn 2024-01-24 21:21:48 +01:00
parent ccef0197c6
commit 97aa045b0b
1 changed files with 9 additions and 4 deletions

View File

@ -58,12 +58,17 @@
# API dependencies / Frontend scripts # API dependencies / Frontend scripts
python3 python3
pre-commit
]; ];
in { in {
devShell = pkgs.mkShell { devShell = pkgs.mkShell {
buildInputs = commonLibraries ++ packages; buildInputs = commonLibraries ++ packages;
shellHook = ''
pre-commit install
'';
LD_LIBRARY_PATH = pkgs.lib.makeLibraryPath commonLibraries; LD_LIBRARY_PATH = pkgs.lib.makeLibraryPath commonLibraries;
XDG_DATA_DIRS = let XDG_DATA_DIRS = let