nix: use current directory for 'pre-commit' hooks

The behaviour makes more sense when e.g: one modifies the clang-format
rules but has not committed them yet.
This commit is contained in:
Bruno BELANYI 2021-10-08 15:28:53 +02:00
parent 5002193c63
commit 9d0f311598
1 changed files with 1 additions and 1 deletions

View File

@ -49,7 +49,7 @@
checks = {
pre-commit = pre-commit-hooks.lib.${system}.run {
src = self;
src = ./.;
hooks = {
clang-format = {