Skip to content

Commit

Permalink
ycmd: use libclang
Browse files Browse the repository at this point in the history
  • Loading branch information
LnL7 committed Jan 16, 2018
1 parent 47c5728 commit 64f730c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pkgs/development/tools/misc/ycmd/default.nix
Expand Up @@ -15,12 +15,13 @@ stdenv.mkDerivation rec {
sha256 = "0bs94iv521ac2n53n3k8mw3s6v0hi3hhxhjsr0ips3n99al8wndi";
};

buildInputs = [ cmake boost ]
nativeBuildInputs = [ cmake ];
buildInputs = [ boost llvmPackages.libclang ]
++ stdenv.lib.optional stdenv.isDarwin [ fixDarwinDylibNames Cocoa ];

buildPhase = ''
export EXTRA_CMAKE_ARGS=-DPATH_TO_LLVM_ROOT=${llvmPackages.clang-unwrapped}
${python.interpreter} build.py --clang-completer --system-boost
${python.interpreter} build.py --system-libclang --clang-completer --system-boost
'';

patches = [ ./dont-symlink-clang.patch ];
Expand Down

0 comments on commit 64f730c

Please sign in to comment.