vimPlugins: move vim2nix into nixpkgs repo
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
buildInputs = [ perl ruby ];
|
||||
buildPhase = ''
|
||||
pushd ruby/command-t
|
||||
ruby extconf.rb
|
||||
make
|
||||
popd
|
||||
'';
|
||||
@@ -0,0 +1,7 @@
|
||||
unpackPhase = ''
|
||||
(
|
||||
sourceRoot=d
|
||||
mkdir $sourceRoot; cd $sourceRoot;
|
||||
unzip $src
|
||||
)
|
||||
'';
|
||||
4
pkgs/misc/vim-plugins/vim2nix/additional-nix-code/racer
Normal file
4
pkgs/misc/vim-plugins/vim2nix/additional-nix-code/racer
Normal file
@@ -0,0 +1,4 @@
|
||||
buildPhase = ''
|
||||
find . -type f -not -name 'racer.vim' -exec rm -rf {} \;
|
||||
rm -rf editors images src
|
||||
'';
|
||||
@@ -0,0 +1,6 @@
|
||||
setSourceRoot = ''
|
||||
export sourceRoot=taglist
|
||||
mkdir taglist
|
||||
mv doc taglist
|
||||
mv plugin taglist
|
||||
'';
|
||||
@@ -0,0 +1 @@
|
||||
buildInputs = stdenv.lib.optional stdenv.isDarwin Cocoa;
|
||||
@@ -0,0 +1 @@
|
||||
buildInputs = [ vim ];
|
||||
@@ -0,0 +1 @@
|
||||
buildInputs = [ python ];
|
||||
@@ -0,0 +1 @@
|
||||
postInstall = false;
|
||||
@@ -0,0 +1,5 @@
|
||||
patchPhase = ''
|
||||
substituteInPlace plugin/xkbswitch.vim \
|
||||
--replace /usr/local/lib/libxkbswitch.so ${xkb_switch}/lib/libxkbswitch.so
|
||||
'';
|
||||
buildInputs = [ xkb_switch ];
|
||||
@@ -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
|
||||
'';
|
||||
@@ -0,0 +1 @@
|
||||
dependencies = [ "vimproc-vim" ];
|
||||
@@ -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;
|
||||
};
|
||||
Reference in New Issue
Block a user