From 74825f34a777282ec7e153a6e57b7e95ca24a319 Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Sat, 9 Oct 2021 13:24:24 +0200 Subject: [PATCH] nix: use upstream 'clang-format' hook --- flake.nix | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/flake.nix b/flake.nix index dc173c2..f39bfbf 100644 --- a/flake.nix +++ b/flake.nix @@ -54,10 +54,7 @@ hooks = { clang-format = { enable = true; - name = "clang-format"; - entry = "${pkgs.clang-tools}/bin/clang-format -style=file -i"; - types = [ "text" "c++" ]; - language = "system"; + types_or = [ "c++" ]; }; nixpkgs-fmt = {