2016-02-19 13:12:11 +01:00
|
|
|
{ stdenv, fetchgit, cmake, python, llvmPackages, boost, pythonPackages, buildPythonApplication, makeWrapper
|
2016-01-05 15:28:15 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "ycmd-2016-01-12";
|
|
|
|
|
|
|
|
src = fetchgit {
|
|
|
|
url = "git://github.com/Valloric/ycmd.git";
|
|
|
|
rev = "f982f6251c5ff85e3abe6e862aad8bcd19e85ece";
|
2016-06-02 13:26:44 +02:00
|
|
|
sha256 = "1g0hivv3wla7z5dgnkcn3ny38p089pjfj36nx6k29zmprgmjinyr";
|
2016-01-05 15:28:15 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ python cmake llvmPackages.clang boost makeWrapper ];
|
|
|
|
|
|
|
|
propagatedBuildInputs = with pythonPackages; [ waitress frozendict bottle ];
|
|
|
|
|
|
|
|
buildPhase = ''
|
|
|
|
python build.py --clang-completer --system-libclang --system-boost
|
|
|
|
'';
|
|
|
|
|
|
|
|
configurePhase = ":";
|
|
|
|
|
|
|
|
installPhase = with pythonPackages; ''
|
|
|
|
mkdir -p $out/lib/ycmd/third_party $out/bin
|
|
|
|
cp -r ycmd/ CORE_VERSION libclang.so.* ycm_client_support.so ycm_core.so $out/lib/ycmd/
|
|
|
|
wrapProgram $out/lib/ycmd/ycmd/__main__.py \
|
|
|
|
--prefix PYTHONPATH : "$(toPythonPath ${waitress}):$(toPythonPath ${frozendict}):$(toPythonPath ${bottle})"
|
|
|
|
ln -s $out/lib/ycmd/ycmd/__main__.py $out/bin/ycmd
|
|
|
|
'';
|
|
|
|
|
2016-07-08 01:40:33 +02:00
|
|
|
meta = with stdenv.lib; {
|
2016-01-05 15:28:15 +01:00
|
|
|
description = "A code-completion and comprehension server";
|
2016-07-08 01:40:33 +02:00
|
|
|
homepage = https://github.com/Valloric/ycmd;
|
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = with maintainers; [ rasendubi ];
|
|
|
|
platforms = platforms.all;
|
2016-01-05 15:28:15 +01:00
|
|
|
};
|
|
|
|
}
|