From c19a0fe28880b4623ca1c18720ab5577c5954312 Mon Sep 17 00:00:00 2001 From: Raito Bezarius Date: Sat, 7 Jun 2025 14:45:52 +0200 Subject: [PATCH] devshell: add `git-clang-format` This is useful to reformat only changed hunks of a file via `clang-format`. Change-Id: I9aa8526d75fd2301113ee57f3a2e595f3b03504f Signed-off-by: Raito Bezarius --- package.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/package.nix b/package.nix index 57dd07bdb..3a2e08c8c 100644 --- a/package.nix +++ b/package.nix @@ -597,6 +597,9 @@ stdenv.mkDerivation (finalAttrs: { doxygen # Load-bearing order. Must come before clang-unwrapped below, but after clang_tools above. stdenv.cc + + # git-clang-format + llvmPackages.libclang.python ] ++ [ rust-analyzer