diff options
author | jade <lix@jade.fyi> | 2024-03-21 12:28:13 -0600 |
---|---|---|
committer | Gerrit Code Review <gerrit@lix> | 2024-03-21 12:28:13 -0600 |
commit | a7161b6c0f6f9640acc065f0bd18579babacb0cf (patch) | |
tree | 70a36d9773d8ab28f29fdc88135ddc589098b8ab /flake.nix | |
parent | fab55aff0eca23115323d4d08d9b965d8fe3e137 (diff) | |
parent | 6b0020749d4b1711b669ba68fe74474f8241f084 (diff) |
Merge "clang-tidy check infrastructure" into main
Diffstat (limited to 'flake.nix')
-rw-r--r-- | flake.nix | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -317,11 +317,18 @@ }; in nix.overrideAttrs (prev: { + # Required for clang-tidy checks + buildInputs = prev.buildInputs ++ lib.optionals (stdenv.cc.isClang) [ pkgs.llvmPackages.llvm pkgs.llvmPackages.clang-unwrapped.dev ]; nativeBuildInputs = prev.nativeBuildInputs ++ lib.optional (stdenv.cc.isClang && !stdenv.buildPlatform.isDarwin) pkgs.buildPackages.bear + # Required for clang-tidy checks + ++ lib.optionals (stdenv.cc.isClang) [ pkgs.buildPackages.cmake pkgs.buildPackages.ninja pkgs.buildPackages.llvmPackages.llvm.dev ] ++ lib.optional (stdenv.cc.isClang && stdenv.hostPlatform == stdenv.buildPlatform) - pkgs.buildPackages.clang-tools; + # for some reason that seems accidental and was changed in + # NixOS 24.05-pre, clang-tools is pinned to LLVM 14 when + # default LLVM is newer. + (pkgs.buildPackages.clang-tools.override { inherit (pkgs.buildPackages) llvmPackages; }); src = null; |