clang_complete (vim): fix multiple clang outputs

Clang-specific headers and dynamic libraries now go to different outputs,
  and clang_complete must be able to find both
This commit is contained in:
Pavel Chuprikov 2018-06-17 17:39:02 +02:00
parent 70f87e66b3
commit 71bf86d056

View file

@ -101,6 +101,9 @@ with generated;
preFixup = ''
substituteInPlace "$out"/share/vim-plugins/clang_complete/plugin/clang_complete.vim \
--replace "let g:clang_library_path = '' + "''" + ''" "let g:clang_library_path='${llvmPackages.clang.cc.lib}/lib/libclang.so'"
substituteInPlace "$out"/share/vim-plugins/clang_complete/plugin/libclang.py \
--replace "/usr/lib/clang" "${llvmPackages.clang.cc}/lib/clang"
'';
});