vimPlugins: move vim2nix into nixpkgs repo

This commit is contained in:
Arseniy Seroka
2016-01-10 13:19:06 +03:00
parent ada9b3b666
commit 4a0a0592db
18 changed files with 391 additions and 17 deletions

View File

@@ -0,0 +1,7 @@
buildInputs = [ perl ruby ];
buildPhase = ''
pushd ruby/command-t
ruby extconf.rb
make
popd
'';

View File

@@ -0,0 +1,7 @@
unpackPhase = ''
(
sourceRoot=d
mkdir $sourceRoot; cd $sourceRoot;
unzip $src
)
'';

View File

@@ -0,0 +1,4 @@
buildPhase = ''
find . -type f -not -name 'racer.vim' -exec rm -rf {} \;
rm -rf editors images src
'';

View File

@@ -0,0 +1,6 @@
setSourceRoot = ''
export sourceRoot=taglist
mkdir taglist
mv doc taglist
mv plugin taglist
'';

View File

@@ -0,0 +1 @@
buildInputs = stdenv.lib.optional stdenv.isDarwin Cocoa;

View File

@@ -0,0 +1 @@
buildInputs = [ vim ];

View File

@@ -0,0 +1 @@
buildInputs = [ python ];

View File

@@ -0,0 +1 @@
postInstall = false;

View File

@@ -0,0 +1,5 @@
patchPhase = ''
substituteInPlace plugin/xkbswitch.vim \
--replace /usr/local/lib/libxkbswitch.so ${xkb_switch}/lib/libxkbswitch.so
'';
buildInputs = [ xkb_switch ];

View File

@@ -0,0 +1,9 @@
buildInputs = [ which ];
buildPhase = ''
substituteInPlace autoload/vimproc.vim \
--replace vimproc_mac.so vimproc_unix.so \
--replace vimproc_linux64.so vimproc_unix.so \
--replace vimproc_linux32.so vimproc_unix.so
make -f make_unix.mak
'';

View File

@@ -0,0 +1 @@
dependencies = [ "vimproc-vim" ];

View File

@@ -0,0 +1,24 @@
buildInputs = [
python go cmake
(if stdenv.isDarwin then llvmPackages.clang else llvmPackages.clang-unwrapped)
llvmPackages.llvm
] ++ stdenv.lib.optional stdenv.isDarwin Cocoa;
buildPhase = ''
patchShebangs .
mkdir build
pushd build
cmake -G "Unix Makefiles" . ../third_party/ycmd/cpp -DPYTHON_LIBRARIES:PATH=${python}/lib/libpython2.7.so -DPYTHON_INCLUDE_DIR:PATH=${python}/include/python2.7 -DUSE_CLANG_COMPLETER=ON -DUSE_SYSTEM_LIBCLANG=ON
make ycm_support_libs -j''${NIX_BUILD_CORES} -l''${NIX_BUILD_CORES}}
${python}/bin/python ../third_party/ycmd/build.py --gocode-completer --clang-completer --system-libclang
popd
'';
meta = {
description = "Fastest non utf-8 aware word and C completion engine for Vim";
homepage = http://github.com/Valloric/YouCompleteMe;
license = stdenv.lib.licenses.gpl3;
maintainers = with stdenv.lib.maintainers; [marcweber jagajaga];
platforms = stdenv.lib.platforms.linux;
};