Merge pull request #65326 from peterhoeg/f/clang
clang-tools: install clangd as well
This commit is contained in:
commit
7ef897f6aa
@ -2,24 +2,31 @@
|
||||
|
||||
let
|
||||
clang = llvmPackages.clang-unwrapped;
|
||||
version = stdenv.lib.getVersion clang;
|
||||
in
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "clang-tools-${version}";
|
||||
in stdenv.mkDerivation {
|
||||
pname = "clang-tools";
|
||||
version = stdenv.lib.getVersion clang;
|
||||
|
||||
dontUnpack = true;
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
mkdir -p $out/bin
|
||||
for tool in \
|
||||
clang-apply-replacements \
|
||||
clang-check \
|
||||
clang-format \
|
||||
clang-rename \
|
||||
clang-tidy
|
||||
clang-tidy \
|
||||
clangd
|
||||
do
|
||||
ln -s ${clang}/bin/$tool $out/bin/$tool
|
||||
done
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = clang.meta // {
|
||||
description = "Standalone command line tools for C++ development";
|
||||
maintainers = with stdenv.lib.maintainers; [ aherrmann ];
|
||||
|
Loading…
Reference in New Issue
Block a user