feat: add pre-commit to shellHook
Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2701>
This commit is contained in:
parent
ccef0197c6
commit
97aa045b0b
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue