clang-tools, perhaps
This commit is contained in:
parent
da6724c979
commit
db371a5a61
3 changed files with 59 additions and 0 deletions
24
pkgs/clang-tools/default.nix
Normal file
24
pkgs/clang-tools/default.nix
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
{ pkgs }:
|
||||
with pkgs;
|
||||
|
||||
runCommand "clang-tools" {} ''
|
||||
mkdir -p $out/bin
|
||||
export libc_includes="${stdenv.lib.getDev stdenv.cc.libc}/include"
|
||||
export libcpp_includes="${llvmPackages.libcxx}/include/c++/v1"
|
||||
|
||||
export clang=${llvmPackages.clang-unwrapped}
|
||||
|
||||
echo $clang
|
||||
|
||||
substituteAll ${./wrapper} $out/bin/clangd
|
||||
chmod +x $out/bin/clangd
|
||||
for tool in \
|
||||
clang-apply-replacements \
|
||||
clang-check \
|
||||
clang-format \
|
||||
clang-rename \
|
||||
clang-tidy
|
||||
do
|
||||
ln -s $out/bin/clangd $out/bin/$tool
|
||||
done
|
||||
''
|
||||
Loading…
Add table
Add a link
Reference in a new issue