From 9d0f311598608ef5d86188c55080454a6f6817e2 Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Fri, 8 Oct 2021 15:28:53 +0200 Subject: [PATCH] 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. --- flake.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index 8a18a85..56c5c1c 100644 --- a/flake.nix +++ b/flake.nix @@ -49,7 +49,7 @@ checks = { pre-commit = pre-commit-hooks.lib.${system}.run { - src = self; + src = ./.; hooks = { clang-format = {