diff options
author | Peter Hoeg <peter@hoeg.com> | 2018-11-15 13:18:49 +0800 |
---|---|---|
committer | Peter Hoeg <peter@hoeg.com> | 2019-07-24 16:33:44 +0800 |
commit | c29a53b3cea3ed86b0b95677e8c6f1508a94f16c (patch) | |
tree | c69cb09ca5db034862a6b1f412c49d3eae930efa /pkgs/development/tools/clang-tools | |
parent | bede9851a1c68c94709790a4beed81d2a103f31f (diff) |
clang-tools: install clangd as well
Diffstat (limited to 'pkgs/development/tools/clang-tools')
-rw-r--r-- | pkgs/development/tools/clang-tools/default.nix | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/pkgs/development/tools/clang-tools/default.nix b/pkgs/development/tools/clang-tools/default.nix index 0fcaee5746817..0abea99f64ae1 100644 --- a/pkgs/development/tools/clang-tools/default.nix +++ b/pkgs/development/tools/clang-tools/default.nix @@ -2,24 +2,31 @@ let clang = llvmPackages.clang-unwrapped; + +in stdenv.mkDerivation { + pname = "clang-tools"; version = stdenv.lib.getVersion clang; -in -stdenv.mkDerivation { - name = "clang-tools-${version}"; 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 ]; |