devShell: increase priority of clang-tools

Before we would get the unwrapped version of clang-tools from clang
itself, which doesn't quite work.
This commit is contained in:
Jörg Thalheim 2024-09-18 08:39:31 +02:00
parent 8105307f0f
commit 2b7642632e

View File

@ -370,7 +370,7 @@
# TODO: Remove the darwin check once # TODO: Remove the darwin check once
# https://github.com/NixOS/nixpkgs/pull/291814 is available # https://github.com/NixOS/nixpkgs/pull/291814 is available
++ lib.optional (stdenv.cc.isClang && !stdenv.buildPlatform.isDarwin) pkgs.buildPackages.bear ++ lib.optional (stdenv.cc.isClang && !stdenv.buildPlatform.isDarwin) pkgs.buildPackages.bear
++ lib.optional (stdenv.cc.isClang && stdenv.hostPlatform == stdenv.buildPlatform) pkgs.buildPackages.clang-tools; ++ lib.optional (stdenv.cc.isClang && stdenv.hostPlatform == stdenv.buildPlatform) (lib.hiPrio pkgs.buildPackages.clang-tools);
buildInputs = attrs.buildInputs or [] buildInputs = attrs.buildInputs or []
++ [ ++ [