ycmd: Init at 2016-01-12
This commit is contained in:
parent
4f025e02c0
commit
c37c8e1c00
37
pkgs/development/tools/misc/ycmd/default.nix
Normal file
37
pkgs/development/tools/misc/ycmd/default.nix
Normal 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;
|
||||
};
|
||||
}
|
@ -6070,6 +6070,8 @@ let
|
||||
|
||||
yacc = bison;
|
||||
|
||||
ycmd = callPackage ../development/tools/misc/ycmd { };
|
||||
|
||||
yodl = callPackage ../development/tools/misc/yodl { };
|
||||
|
||||
winpdb = callPackage ../development/tools/winpdb { };
|
||||
|
@ -4678,6 +4678,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 {
|
||||
|
Loading…
Reference in New Issue
Block a user