diff options
author | Alexey Shmalko <rasen.dubi@gmail.com> | 2016-01-05 16:28:15 +0200 |
---|---|---|
committer | Alexey Shmalko <rasen.dubi@gmail.com> | 2016-01-15 01:39:21 +0200 |
commit | c37c8e1c0017aeffdf1084948ea2bc846b42bf25 (patch) | |
tree | 4074f7f0f4c55b93d8676c42565927f6819c0d22 /pkgs/development/tools/misc/ycmd | |
parent | 4f025e02c08d6ff53784b5a18976f87c71ac8225 (diff) | |
download | nixlib-c37c8e1c0017aeffdf1084948ea2bc846b42bf25.tar nixlib-c37c8e1c0017aeffdf1084948ea2bc846b42bf25.tar.gz nixlib-c37c8e1c0017aeffdf1084948ea2bc846b42bf25.tar.bz2 nixlib-c37c8e1c0017aeffdf1084948ea2bc846b42bf25.tar.lz nixlib-c37c8e1c0017aeffdf1084948ea2bc846b42bf25.tar.xz nixlib-c37c8e1c0017aeffdf1084948ea2bc846b42bf25.tar.zst nixlib-c37c8e1c0017aeffdf1084948ea2bc846b42bf25.zip |
ycmd: Init at 2016-01-12
Diffstat (limited to 'pkgs/development/tools/misc/ycmd')
-rw-r--r-- | pkgs/development/tools/misc/ycmd/default.nix | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/pkgs/development/tools/misc/ycmd/default.nix b/pkgs/development/tools/misc/ycmd/default.nix new file mode 100644 index 000000000000..029e76e0c996 --- /dev/null +++ b/pkgs/development/tools/misc/ycmd/default.nix @@ -0,0 +1,37 @@ +{ stdenv, fetchgit, cmake, python, llvmPackages, boost, pythonPackages, buildPythonPackage, makeWrapper +}: + +stdenv.mkDerivation rec { + name = "ycmd-2016-01-12"; + + src = fetchgit { + url = "git://github.com/Valloric/ycmd.git"; + rev = "f982f6251c5ff85e3abe6e862aad8bcd19e85ece"; + sha256 = "1qp3ip6ab34610rfy0x85xsjg7blfkiy025vskwk9zw6gqglf3b3"; + }; + + 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 + ''; + + meta = { + description = "A code-completion and comprehension server"; + homepage = "https://github.com/Valloric/ycmd"; + license = stdenv.lib.licenses.gpl3; + platforms = stdenv.lib.platforms.all; + }; +} |