youcompleteme (vim plugin): update to latest

patchShebangs fixes build failure in chroot (in this new version).

The --system-libclang flag is now needed to prevent YouCompleteMe from
trying to download and build clang (which fails).
This commit is contained in:
Bjørn Forsman 2014-10-03 08:37:17 +02:00
parent 5d294db3b2
commit abaf2dbeae

View File

@ -111,26 +111,27 @@ in rec
YouCompleteMe = stdenv.mkDerivation {
src = fetchgit {
url = "https://github.com/Valloric/YouCompleteMe.git";
rev = "67288080ea7057ea3111cb4c863484e3b150e738";
sha256 = "1a3rwdl458z1yrp50jdwp629j4al0zld21n15sad28g51m8gw5ka";
rev = "a2cae90f7ba1746bf1209edd6739f87d5914b375";
sha256 = "1yxrxskxnr2da5awm59ra4s9wg67rimcbazvln9bayg9saxs540d";
};
name = "youcompleteme-git-6728808";
name = "youcompleteme-git-a2cae90";
buildInputs = [ python cmake clang.clang ];
configurePhase = ":";
buildPhase = ''
patchShebangs .
target=$out/share/vim-plugins/YouCompleteMe
mkdir -p $target
cp -a ./ $target
mkdir $target/build
cd $target/build
cmake -G "Unix Makefiles" . $target/third_party/ycmd/cpp -DPYTHON_LIBRARIES:PATH=${python}/lib/libpython2.7.so -DPYTHON_INCLUDE_DIR:PATH=${python}/include/python2.7 -DUSE_CLANG_COMPLETER=ON -DUSE_SYSTEM_LIBCLANG=ON
make ycm_support_libs -j''${NIX_BUILD_CORES} -l''${NIX_BUILD_CORES}}
${bash}/bin/bash $target/install.sh --clang-completer
${bash}/bin/bash $target/install.sh --clang-completer --system-libclang
${vimHelpTags}
vimHelpTags $target