clang-tools: install clangd as well

This commit is contained in:
Peter Hoeg 2018-11-15 13:18:49 +08:00
parent bede9851a1
commit c29a53b3ce

View File

@ -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 ];