Merge pull request #12159 from rasendubi/ycmd

ycmd: Init at 2016-01-12
This commit is contained in:
Franz Pletz 2016-01-18 14:11:22 +01:00
commit 55fc3acfcb
3 changed files with 54 additions and 0 deletions

View File

@ -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;
};
}

View File

@ -6097,6 +6097,8 @@ let
yacc = bison;
ycmd = callPackage ../development/tools/misc/ycmd { };
yodl = callPackage ../development/tools/misc/yodl { };
winpdb = callPackage ../development/tools/winpdb { };

View File

@ -4988,6 +4988,21 @@ in modules // {
propagatedBuildInputs = with self; [ rpkg offtrac urlgrabber fedora_cert ];
});
frozendict = buildPythonPackage rec {
name = "frozendict-0.5";
src = pkgs.fetchurl {
url = "https://pypi.python.org/packages/source/f/frozendict/${name}.tar.gz";
sha256 = "0m4kg6hbadvf99if78nx01q7qnbyhdw3x4znl5dasgciyi54432n";
};
meta = {
homepage = https://github.com/slezica/python-frozendict;
description = "An immutable dictionary";
license = stdenv.lib.licenses.mit;
};
};
fudge = buildPythonPackage rec {
name = "fudge-0.9.6";
src = pkgs.fetchurl {