Merge pull request #65326 from peterhoeg/f/clang

clang-tools: install clangd as well
This commit is contained in:
Peter Hoeg 2019-07-24 19:34:10 +08:00 committed by GitHub
commit 7ef897f6aa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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