Merge pull request #47171 from pschuprikov/vim-clang-fix
vim plugins: fix for multiple clang outputs, use clang 6.0
This commit is contained in:
commit
18eb9e27a3
@ -19,6 +19,7 @@ let
|
||||
overrides = callPackage ./overrides.nix {
|
||||
inherit (darwin.apple_sdk.frameworks) Cocoa CoreFoundation CoreServices;
|
||||
inherit buildVimPluginFrom2Nix;
|
||||
inherit llvmPackages;
|
||||
};
|
||||
|
||||
overriden = generated // (overrides generated);
|
||||
|
@ -101,12 +101,15 @@ 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"
|
||||
'';
|
||||
});
|
||||
|
||||
clighter8 = clighter8.overrideAttrs(old: {
|
||||
preFixup = ''
|
||||
sed "/^let g:clighter8_libclang_path/s|')$|${llvmPackages.clang.cc}/lib/libclang.so')|" \
|
||||
sed "/^let g:clighter8_libclang_path/s|')$|${llvmPackages.clang.cc.lib}/lib/libclang.so')|" \
|
||||
-i "$out"/share/vim-plugins/clighter8/plugin/clighter8.vim
|
||||
'';
|
||||
});
|
||||
|
@ -22668,8 +22668,8 @@ with pkgs;
|
||||
|
||||
vimUtils = callPackage ../misc/vim-plugins/vim-utils.nix { };
|
||||
|
||||
vimPlugins = recurseIntoAttrs (callPackage ../misc/vim-plugins {
|
||||
llvmPackages = llvmPackages_39;
|
||||
vimPlugins = recurseIntoAttrs (callPackage ../misc/vim-plugins {
|
||||
llvmPackages = llvmPackages_6;
|
||||
});
|
||||
|
||||
vimprobable2-unwrapped = callPackage ../applications/networking/browsers/vimprobable2 {
|
||||
|
Loading…
Reference in New Issue
Block a user