clang-tools: fix missing extra tools

fixes https://github.com/NixOS/nixpkgs/issues/128909

(cherry picked from commit f69522b22745fcb808835a1f4c25d533bc46943d)
This commit is contained in:
Jörg Thalheim 2021-07-04 12:07:47 +02:00 committed by Bjørn Forsman
parent bde61d72f0
commit bf6c393ba4

View File

@ -17,6 +17,9 @@ let
mv clang-* clang
sourceRoot=$PWD/clang
unpackFile ${clang-tools-extra_src}
mv clang-tools-extra-* $sourceRoot/tools/extra
substituteInPlace $sourceRoot/tools/extra/clangd/quality/CompletionModel.cmake \
--replace ' ''${CMAKE_SOURCE_DIR}/../clang-tools-extra' ' ''${CMAKE_SOURCE_DIR}/tools/extra'
'';
nativeBuildInputs = [ cmake python3 ]