2018-12-27 11:12:48 +01:00
|
|
|
{ lib, stdenv
|
2019-03-01 17:06:50 +01:00
|
|
|
, python, cmake, meson, vim, ruby
|
2019-05-31 22:55:09 +02:00
|
|
|
, which, fetchFromGitHub, fetchgit, fetchurl, fetchzip
|
2019-02-15 23:15:02 +01:00
|
|
|
, llvmPackages, rustPlatform
|
2019-03-26 22:08:21 +01:00
|
|
|
, xkb-switch, fzf, skim, stylish-haskell
|
2018-09-14 06:36:29 +02:00
|
|
|
, python3, boost, icu, ncurses
|
|
|
|
, ycmd, rake
|
2018-12-31 14:47:57 +01:00
|
|
|
, gobject-introspection, glib, wrapGAppsHook
|
2018-09-14 06:36:29 +02:00
|
|
|
, substituteAll
|
|
|
|
, languagetool
|
|
|
|
, Cocoa, CoreFoundation, CoreServices
|
|
|
|
, buildVimPluginFrom2Nix
|
2018-10-31 18:46:59 +01:00
|
|
|
|
|
|
|
# vim-go denpencies
|
|
|
|
, asmfmt, delve, errcheck, godef, golint
|
2018-11-15 03:33:38 +01:00
|
|
|
, gomodifytags, gotags, gotools, go-motion
|
2018-10-31 18:46:59 +01:00
|
|
|
, gnused, reftools, gogetdoc, gometalinter
|
2018-11-06 07:14:10 +01:00
|
|
|
, impl, iferr, gocode, gocode-gomod, go-tools
|
2019-03-04 08:33:14 +01:00
|
|
|
|
|
|
|
# vCoolor dep
|
|
|
|
, gnome3
|
2018-09-14 06:36:29 +02:00
|
|
|
}:
|
|
|
|
|
2018-12-27 11:12:48 +01:00
|
|
|
self: super: {
|
2018-09-14 06:36:29 +02:00
|
|
|
|
|
|
|
vim2nix = buildVimPluginFrom2Nix {
|
2019-01-19 13:18:27 +01:00
|
|
|
pname = "vim2nix";
|
|
|
|
version = "1.0";
|
2018-09-14 06:36:29 +02:00
|
|
|
src = ./vim2nix;
|
2018-12-27 11:12:48 +01:00
|
|
|
dependencies = with super; [ vim-addon-manager ];
|
2018-09-14 06:36:29 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
fzfWrapper = buildVimPluginFrom2Nix {
|
2019-01-19 13:18:27 +01:00
|
|
|
pname = "fzf";
|
|
|
|
version = fzf.version;
|
2018-09-14 06:36:29 +02:00
|
|
|
src = fzf.src;
|
|
|
|
};
|
|
|
|
|
|
|
|
skim = buildVimPluginFrom2Nix {
|
2019-01-19 13:18:27 +01:00
|
|
|
pname = "skim";
|
|
|
|
version = skim.version;
|
2018-12-27 11:12:48 +01:00
|
|
|
src = skim.vim;
|
2018-09-14 06:36:29 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
LanguageClient-neovim = let
|
2019-05-21 10:38:18 +02:00
|
|
|
version = "0.1.146";
|
2019-02-15 23:15:02 +01:00
|
|
|
LanguageClient-neovim-src = fetchurl {
|
2019-05-21 10:38:18 +02:00
|
|
|
url = "https://github.com/autozimu/LanguageClient-neovim/archive/${version}.tar.gz";
|
|
|
|
sha256 = "1xm98pyzf2dlh04ijjf3nkh37lyqspbbjddkjny1g06xxb4kfxnk";
|
2018-09-14 06:36:29 +02:00
|
|
|
};
|
|
|
|
LanguageClient-neovim-bin = rustPlatform.buildRustPackage {
|
|
|
|
name = "LanguageClient-neovim-bin";
|
|
|
|
src = LanguageClient-neovim-src;
|
|
|
|
|
2019-05-21 10:38:18 +02:00
|
|
|
cargoSha256 = "0dixvmwq611wg2g3rp1n1gqali46904fnhb90gcpl9a1diqb34sh";
|
2018-09-14 06:36:29 +02:00
|
|
|
buildInputs = stdenv.lib.optionals stdenv.isDarwin [ CoreServices ];
|
|
|
|
|
|
|
|
# FIXME: Use impure version of CoreFoundation because of missing symbols.
|
|
|
|
# Undefined symbols for architecture x86_64: "_CFURLResourceIsReachable"
|
|
|
|
preConfigure = stdenv.lib.optionalString stdenv.isDarwin ''
|
|
|
|
export NIX_LDFLAGS="-F${CoreFoundation}/Library/Frameworks -framework CoreFoundation $NIX_LDFLAGS"
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
in buildVimPluginFrom2Nix {
|
2019-01-19 13:18:27 +01:00
|
|
|
pname = "LanguageClient-neovim";
|
2019-05-21 10:38:18 +02:00
|
|
|
inherit version;
|
2018-09-14 06:36:29 +02:00
|
|
|
src = LanguageClient-neovim-src;
|
|
|
|
|
2019-03-13 01:04:26 +01:00
|
|
|
propagatedBuildInputs = [ LanguageClient-neovim-bin ];
|
2018-09-14 06:36:29 +02:00
|
|
|
|
|
|
|
preFixup = ''
|
|
|
|
substituteInPlace "$out"/share/vim-plugins/LanguageClient-neovim/autoload/LanguageClient.vim \
|
|
|
|
--replace "let l:path = s:root . '/bin/'" "let l:path = '${LanguageClient-neovim-bin}' . '/bin/'"
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
|
|
|
# do not auto-update this one, as the name clashes with vim-snippets
|
|
|
|
vim-docbk-snippets = buildVimPluginFrom2Nix {
|
2019-01-19 13:18:27 +01:00
|
|
|
pname = "vim-docbk-snippets";
|
|
|
|
version = "2017-11-02";
|
2018-09-14 06:36:29 +02:00
|
|
|
src = fetchgit {
|
|
|
|
url = "https://github.com/jhradilek/vim-snippets";
|
|
|
|
rev = "69cce66defdf131958f152ea7a7b26c21ca9d009";
|
|
|
|
sha256 = "1363b2fmv69axrl2hm74dmx51cqd8k7rk116890qllnapzw1zjgc";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2018-12-27 11:12:48 +01:00
|
|
|
clang_complete = super.clang_complete.overrideAttrs(old: {
|
2018-09-14 06:36:29 +02:00
|
|
|
# In addition to the arguments you pass to your compiler, you also need to
|
|
|
|
# specify the path of the C++ std header (if you are using C++).
|
|
|
|
# These usually implicitly set by cc-wrapper around clang (pkgs/build-support/cc-wrapper).
|
|
|
|
# The linked ruby code shows generates the required '.clang_complete' for cmake based projects
|
|
|
|
# https://gist.github.com/Mic92/135e83803ed29162817fce4098dec144
|
|
|
|
# as an alternative you can execute the following command:
|
|
|
|
# $ eval echo $(nix-instantiate --eval --expr 'with (import <nixpkgs>) {}; clang.default_cxx_stdlib_compile')
|
|
|
|
preFixup = ''
|
|
|
|
substituteInPlace "$out"/share/vim-plugins/clang_complete/plugin/clang_complete.vim \
|
2018-10-20 14:54:46 +02:00
|
|
|
--replace "let g:clang_library_path = '' + "''" + ''" "let g:clang_library_path='${llvmPackages.clang.cc.lib}/lib/libclang.so'"
|
2018-06-17 17:39:02 +02:00
|
|
|
|
|
|
|
substituteInPlace "$out"/share/vim-plugins/clang_complete/plugin/libclang.py \
|
|
|
|
--replace "/usr/lib/clang" "${llvmPackages.clang.cc}/lib/clang"
|
2018-09-14 06:36:29 +02:00
|
|
|
'';
|
|
|
|
});
|
|
|
|
|
2018-12-27 11:12:48 +01:00
|
|
|
clighter8 = super.clighter8.overrideAttrs(old: {
|
2018-09-14 06:36:29 +02:00
|
|
|
preFixup = ''
|
2018-09-22 17:09:25 +02:00
|
|
|
sed "/^let g:clighter8_libclang_path/s|')$|${llvmPackages.clang.cc.lib}/lib/libclang.so')|" \
|
2018-09-14 06:36:29 +02:00
|
|
|
-i "$out"/share/vim-plugins/clighter8/plugin/clighter8.vim
|
|
|
|
'';
|
|
|
|
});
|
|
|
|
|
2019-05-21 10:40:01 +02:00
|
|
|
|
|
|
|
coc-nvim = let
|
2019-06-24 03:55:04 +02:00
|
|
|
version = "0.0.71";
|
2019-05-21 10:40:01 +02:00
|
|
|
index_js = fetchzip {
|
|
|
|
url = "https://github.com/neoclide/coc.nvim/releases/download/v${version}/coc.tar.gz";
|
2019-06-24 03:55:04 +02:00
|
|
|
sha256 = "1bhkyrmrpriizg3f76x4vp94f2bfwcf7a6cp3jvv7vj4zaqhsjzz";
|
2019-05-21 10:40:01 +02:00
|
|
|
};
|
|
|
|
in super.coc-nvim.overrideAttrs(old: {
|
|
|
|
# you still need to enable the node js provider in your nvim config
|
|
|
|
postInstall = ''
|
|
|
|
mkdir -p $out/share/vim-plugins/coc-nvim/build
|
|
|
|
cp ${index_js}/index.js $out/share/vim-plugins/coc-nvim/build/
|
|
|
|
'';
|
|
|
|
|
|
|
|
});
|
|
|
|
|
2018-12-27 11:12:48 +01:00
|
|
|
command-t = super.command-t.overrideAttrs(old: {
|
2018-09-14 06:36:29 +02:00
|
|
|
buildInputs = [ ruby rake ];
|
|
|
|
buildPhase = ''
|
|
|
|
rake make
|
|
|
|
rm ruby/command-t/ext/command-t/*.o
|
|
|
|
'';
|
|
|
|
});
|
|
|
|
|
2018-12-27 11:12:48 +01:00
|
|
|
cpsm = super.cpsm.overrideAttrs(old: {
|
2018-09-14 06:36:29 +02:00
|
|
|
buildInputs = [
|
|
|
|
python3
|
|
|
|
stdenv
|
|
|
|
cmake
|
|
|
|
boost
|
|
|
|
icu
|
|
|
|
ncurses
|
|
|
|
];
|
|
|
|
buildPhase = ''
|
|
|
|
patchShebangs .
|
|
|
|
export PY3=ON
|
|
|
|
./install.sh
|
|
|
|
'';
|
|
|
|
});
|
|
|
|
|
2018-12-27 11:12:48 +01:00
|
|
|
ctrlp-cmatcher = super.ctrlp-cmatcher.overrideAttrs(old: {
|
2018-09-14 06:36:29 +02:00
|
|
|
buildInputs = [ python ];
|
|
|
|
buildPhase = ''
|
|
|
|
patchShebangs .
|
|
|
|
./install.sh
|
|
|
|
'';
|
|
|
|
});
|
|
|
|
|
2019-04-22 01:38:06 +02:00
|
|
|
deoplete-fish = super.deoplete-fish.overrideAttrs(old: {
|
|
|
|
dependencies = with super; [ deoplete-nvim vim-fish ];
|
|
|
|
});
|
|
|
|
|
2018-12-27 11:12:48 +01:00
|
|
|
deoplete-go = super.deoplete-go.overrideAttrs(old: {
|
2018-09-14 06:36:29 +02:00
|
|
|
buildInputs = [ python3 ];
|
|
|
|
buildPhase = ''
|
|
|
|
pushd ./rplugin/python3/deoplete/ujson
|
|
|
|
python3 setup.py build --build-base=$PWD/build --build-lib=$PWD/build
|
|
|
|
popd
|
|
|
|
find ./rplugin/ -name "ujson*.so" -exec mv -v {} ./rplugin/python3/ \;
|
|
|
|
'';
|
|
|
|
});
|
|
|
|
|
2018-12-27 11:12:48 +01:00
|
|
|
ensime-vim = super.ensime-vim.overrideAttrs(old: {
|
2018-09-14 06:36:29 +02:00
|
|
|
passthru.python3Dependencies = ps: with ps; [ sexpdata websocket_client ];
|
2018-12-27 11:12:48 +01:00
|
|
|
dependencies = with super; [ vimproc-vim vimshell-vim super.self forms ];
|
2018-09-14 06:36:29 +02:00
|
|
|
});
|
|
|
|
|
2018-12-27 11:12:48 +01:00
|
|
|
forms = super.forms.overrideAttrs(old: {
|
|
|
|
dependencies = with super; [ super.self ];
|
2018-11-07 20:54:58 +01:00
|
|
|
});
|
|
|
|
|
2018-12-27 11:12:48 +01:00
|
|
|
gist-vim = super.gist-vim.overrideAttrs(old: {
|
|
|
|
dependencies = with super; [ webapi-vim ];
|
2018-09-14 06:36:29 +02:00
|
|
|
});
|
|
|
|
|
2019-05-31 22:55:09 +02:00
|
|
|
gruvbox-community = buildVimPluginFrom2Nix {
|
|
|
|
pname = "gruvbox-community";
|
|
|
|
version = "2019-05-31";
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "gruvbox-community";
|
|
|
|
repo = "gruvbox";
|
|
|
|
rev = "e122091dad968a5524f3e8136615a479c7b6f247";
|
|
|
|
sha256 = "1hncjyfi1gbw62b2pngy5qxyzibrhbyzgfmm9a58sdh1272l8ls8";
|
|
|
|
};
|
|
|
|
meta.maintainers = with stdenv.lib.maintainers; [ minijackson ];
|
|
|
|
};
|
|
|
|
|
2019-03-01 17:06:50 +01:00
|
|
|
meson = buildVimPluginFrom2Nix {
|
|
|
|
inherit (meson) pname version src;
|
|
|
|
preInstall = "cd data/syntax-highlighting/vim";
|
|
|
|
meta.maintainers = with stdenv.lib.maintainers; [ vcunat ];
|
|
|
|
};
|
|
|
|
|
2018-12-27 11:12:48 +01:00
|
|
|
ncm2 = super.ncm2.overrideAttrs(old: {
|
|
|
|
dependencies = with super; [ nvim-yarp ];
|
2018-09-14 06:36:29 +02:00
|
|
|
});
|
|
|
|
|
2018-12-27 11:12:48 +01:00
|
|
|
ncm2-jedi = super.ncm2-jedi.overrideAttrs(old: {
|
|
|
|
dependencies = with super; [ nvim-yarp ncm2 ];
|
2018-12-23 23:31:34 +01:00
|
|
|
passthru.python3Dependencies = ps: with ps; [ jedi ];
|
|
|
|
});
|
|
|
|
|
2018-12-27 11:12:48 +01:00
|
|
|
ncm2-ultisnips = super.ncm2-ultisnips.overrideAttrs(old: {
|
|
|
|
dependencies = with super; [ ultisnips ];
|
2018-09-14 06:36:29 +02:00
|
|
|
});
|
|
|
|
|
2018-12-31 14:47:57 +01:00
|
|
|
sved = let
|
|
|
|
# we put the script in its own derivation to benefit the magic of wrapGAppsHook
|
|
|
|
svedbackend = stdenv.mkDerivation {
|
|
|
|
name = "svedbackend-${super.sved.name}";
|
|
|
|
inherit (super.sved) src;
|
|
|
|
nativeBuildInputs = [ wrapGAppsHook ];
|
|
|
|
buildInputs = [
|
|
|
|
gobject-introspection
|
|
|
|
glib
|
|
|
|
(python3.withPackages(ps: with ps; [ pygobject3 pynvim dbus-python ]))
|
|
|
|
];
|
|
|
|
preferLocalBuild = true;
|
|
|
|
installPhase = ''
|
|
|
|
install -Dt $out/bin ftplugin/evinceSync.py
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
in
|
|
|
|
super.sved.overrideAttrs(old: {
|
|
|
|
preferLocalBuild = true;
|
|
|
|
postPatch = ''
|
|
|
|
rm ftplugin/evinceSync.py
|
|
|
|
ln -s ${svedbackend}/bin/evinceSync.py ftplugin/evinceSync.py
|
|
|
|
'';
|
|
|
|
meta = {
|
|
|
|
description = "synctex support between vim/neovim and evince";
|
|
|
|
};
|
|
|
|
});
|
|
|
|
|
|
|
|
|
2018-12-27 11:12:48 +01:00
|
|
|
vimshell-vim = super.vimshell-vim.overrideAttrs(old: {
|
|
|
|
dependencies = with super; [ vimproc-vim ];
|
2018-09-14 06:36:29 +02:00
|
|
|
});
|
|
|
|
|
2018-12-27 11:12:48 +01:00
|
|
|
vim-addon-manager = super.vim-addon-manager.overrideAttrs(old: {
|
2018-09-14 06:36:29 +02:00
|
|
|
buildInputs = stdenv.lib.optional stdenv.isDarwin Cocoa;
|
|
|
|
});
|
|
|
|
|
2018-12-27 11:12:48 +01:00
|
|
|
vim-addon-actions = super.vim-addon-actions.overrideAttrs(old: {
|
|
|
|
dependencies = with super; [ vim-addon-mw-utils tlib_vim ];
|
2018-09-14 06:36:29 +02:00
|
|
|
});
|
|
|
|
|
2018-12-27 11:12:48 +01:00
|
|
|
vim-addon-async = super.vim-addon-async.overrideAttrs(old: {
|
|
|
|
dependencies = with super; [ vim-addon-signs ];
|
2018-09-14 06:36:29 +02:00
|
|
|
});
|
|
|
|
|
2018-12-27 11:12:48 +01:00
|
|
|
vim-addon-background-cmd = super.vim-addon-background-cmd.overrideAttrs(old: {
|
|
|
|
dependencies = with super; [ vim-addon-mw-utils ];
|
2018-09-14 06:36:29 +02:00
|
|
|
});
|
|
|
|
|
2018-12-27 11:12:48 +01:00
|
|
|
vim-addon-completion = super.vim-addon-completion.overrideAttrs(old: {
|
|
|
|
dependencies = with super; [ tlib_vim ];
|
2018-09-14 06:36:29 +02:00
|
|
|
});
|
|
|
|
|
2018-12-27 11:12:48 +01:00
|
|
|
vim-addon-goto-thing-at-cursor = super.vim-addon-goto-thing-at-cursor.overrideAttrs(old: {
|
|
|
|
dependencies = with super; [ tlib_vim ];
|
2018-09-14 06:36:29 +02:00
|
|
|
});
|
|
|
|
|
2018-12-27 11:12:48 +01:00
|
|
|
vim-addon-mru = super.vim-addon-mru.overrideAttrs(old: {
|
|
|
|
dependencies = with super; [ vim-addon-other vim-addon-mw-utils ];
|
2018-09-14 06:36:29 +02:00
|
|
|
});
|
|
|
|
|
2018-12-27 11:12:48 +01:00
|
|
|
vim-addon-nix = super.vim-addon-nix.overrideAttrs(old: {
|
|
|
|
dependencies = with super; [
|
2018-12-24 13:02:31 +01:00
|
|
|
vim-addon-completion
|
|
|
|
vim-addon-goto-thing-at-cursor
|
|
|
|
vim-addon-errorformats
|
|
|
|
vim-addon-actions
|
|
|
|
vim-addon-mw-utils tlib_vim
|
2018-09-14 06:36:29 +02:00
|
|
|
];
|
|
|
|
});
|
|
|
|
|
2018-12-27 11:12:48 +01:00
|
|
|
vim-addon-sql = super.vim-addon-sql.overrideAttrs(old: {
|
|
|
|
dependencies = with super; [ vim-addon-completion vim-addon-background-cmd tlib_vim ];
|
2018-09-14 06:36:29 +02:00
|
|
|
});
|
|
|
|
|
2018-12-27 11:12:48 +01:00
|
|
|
vim-addon-syntax-checker = super.vim-addon-syntax-checker.overrideAttrs(old: {
|
|
|
|
dependencies = with super; [ vim-addon-mw-utils tlib_vim ];
|
2018-09-14 06:36:29 +02:00
|
|
|
});
|
|
|
|
|
2018-12-27 11:12:48 +01:00
|
|
|
vim-addon-toggle-buffer = super.vim-addon-toggle-buffer.overrideAttrs(old: {
|
|
|
|
dependencies = with super; [ vim-addon-mw-utils tlib_vim ];
|
2018-09-14 06:36:29 +02:00
|
|
|
});
|
|
|
|
|
2018-12-27 11:12:48 +01:00
|
|
|
vim-addon-xdebug = super.vim-addon-xdebug.overrideAttrs(old: {
|
|
|
|
dependencies = with super; [ webapi-vim vim-addon-mw-utils vim-addon-signs vim-addon-async ];
|
2018-09-14 06:36:29 +02:00
|
|
|
});
|
|
|
|
|
2018-12-27 11:12:48 +01:00
|
|
|
vim-bazel = super.vim-bazel.overrideAttrs(old: {
|
|
|
|
dependencies = with super; [ vim-maktaba ];
|
2018-09-14 06:36:29 +02:00
|
|
|
});
|
|
|
|
|
2018-12-27 11:12:48 +01:00
|
|
|
vim-codefmt = super.vim-codefmt.overrideAttrs(old: {
|
|
|
|
dependencies = with super; [ vim-maktaba ];
|
2018-09-14 06:36:29 +02:00
|
|
|
});
|
|
|
|
|
2018-12-27 11:12:48 +01:00
|
|
|
vim-easytags = super.vim-easytags.overrideAttrs(old: {
|
|
|
|
dependencies = with super; [ vim-misc ];
|
2018-09-14 06:36:29 +02:00
|
|
|
});
|
|
|
|
|
2018-10-31 18:46:59 +01:00
|
|
|
# change the go_bin_path to point to a path in the nix store. See the code in
|
|
|
|
# fatih/vim-go here
|
|
|
|
# https://github.com/fatih/vim-go/blob/155836d47052ea9c9bac81ba3e937f6f22c8e384/autoload/go/path.vim#L154-L159
|
2018-12-27 11:12:48 +01:00
|
|
|
vim-go = super.vim-go.overrideAttrs(old: let
|
2018-10-31 18:46:59 +01:00
|
|
|
binPath = lib.makeBinPath [
|
|
|
|
asmfmt
|
|
|
|
delve
|
|
|
|
errcheck
|
2018-11-15 03:33:38 +01:00
|
|
|
go-motion
|
2018-11-06 07:14:10 +01:00
|
|
|
go-tools
|
|
|
|
gocode
|
|
|
|
gocode-gomod
|
2018-10-31 18:46:59 +01:00
|
|
|
godef
|
|
|
|
gogetdoc
|
|
|
|
golint
|
|
|
|
gometalinter
|
|
|
|
gomodifytags
|
|
|
|
gotags
|
|
|
|
gotools
|
|
|
|
iferr
|
|
|
|
impl
|
|
|
|
reftools
|
|
|
|
];
|
|
|
|
in {
|
|
|
|
postPatch = ''
|
|
|
|
${gnused}/bin/sed \
|
2018-11-06 02:07:54 +01:00
|
|
|
-Ee 's@"go_bin_path", ""@"go_bin_path", "${binPath}"@g' \
|
|
|
|
-i autoload/go/config.vim
|
2018-10-31 18:46:59 +01:00
|
|
|
'';
|
|
|
|
});
|
|
|
|
|
2018-12-27 11:12:48 +01:00
|
|
|
vim-grammarous = super.vim-grammarous.overrideAttrs(old: {
|
2018-09-14 06:36:29 +02:00
|
|
|
# use `:GrammarousCheck` to initialize checking
|
|
|
|
# In neovim, you also want to use set
|
|
|
|
# let g:grammarous#show_first_error = 1
|
|
|
|
# see https://github.com/rhysd/vim-grammarous/issues/39
|
|
|
|
patches = [
|
|
|
|
(substituteAll {
|
|
|
|
src = ./patches/vim-grammarous/set_default_languagetool.patch;
|
|
|
|
inherit languagetool;
|
|
|
|
})
|
|
|
|
];
|
|
|
|
});
|
|
|
|
|
2018-12-27 11:12:48 +01:00
|
|
|
vim-hier = super.vim-hier.overrideAttrs(old: {
|
2018-09-14 06:36:29 +02:00
|
|
|
buildInputs = [ vim ];
|
|
|
|
});
|
|
|
|
|
2018-12-27 11:12:48 +01:00
|
|
|
vim-isort = super.vim-isort.overrideAttrs(old: {
|
2018-09-14 06:36:29 +02:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace ftplugin/python_vimisort.vim \
|
2018-12-27 11:12:48 +01:00
|
|
|
--replace 'import vim' 'import vim; import sys; sys.path.append("${python.pkgs.isort}/${python.sitePackages}")'
|
2018-09-14 06:36:29 +02:00
|
|
|
'';
|
|
|
|
});
|
|
|
|
|
2018-12-27 11:12:48 +01:00
|
|
|
vim-snipmate = super.vim-snipmate.overrideAttrs(old: {
|
|
|
|
dependencies = with super; [ vim-addon-mw-utils tlib_vim ];
|
2018-09-14 06:36:29 +02:00
|
|
|
});
|
|
|
|
|
|
|
|
|
2018-12-27 11:12:48 +01:00
|
|
|
vim-wakatime = super.vim-wakatime.overrideAttrs(old: {
|
2018-09-14 06:36:29 +02:00
|
|
|
buildInputs = [ python ];
|
|
|
|
});
|
|
|
|
|
2018-12-27 11:12:48 +01:00
|
|
|
vim-xdebug = super.vim-xdebug.overrideAttrs(old: {
|
2018-09-14 06:36:29 +02:00
|
|
|
postInstall = false;
|
|
|
|
});
|
|
|
|
|
2018-12-27 11:12:48 +01:00
|
|
|
vim-xkbswitch = super.vim-xkbswitch.overrideAttrs(old: {
|
2018-09-14 06:36:29 +02:00
|
|
|
patchPhase = ''
|
|
|
|
substituteInPlace plugin/xkbswitch.vim \
|
2019-01-02 17:09:15 +01:00
|
|
|
--replace /usr/local/lib/libxkbswitch.so ${xkb-switch}/lib/libxkbswitch.so
|
2018-09-14 06:36:29 +02:00
|
|
|
'';
|
2019-01-02 17:09:15 +01:00
|
|
|
buildInputs = [ xkb-switch ];
|
2018-09-14 06:36:29 +02:00
|
|
|
});
|
|
|
|
|
2018-12-27 11:12:48 +01:00
|
|
|
vim-yapf = super.vim-yapf.overrideAttrs(old: {
|
2018-09-14 06:36:29 +02:00
|
|
|
buildPhase = ''
|
|
|
|
substituteInPlace ftplugin/python_yapf.vim \
|
2018-12-27 11:12:48 +01:00
|
|
|
--replace '"yapf"' '"${python3.pkgs.yapf}/bin/yapf"'
|
2018-09-14 06:36:29 +02:00
|
|
|
'';
|
|
|
|
});
|
|
|
|
|
2018-12-27 11:12:48 +01:00
|
|
|
vimproc-vim = super.vimproc-vim.overrideAttrs(old: {
|
2018-09-14 06:36:29 +02:00
|
|
|
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
|
|
|
|
'';
|
|
|
|
});
|
|
|
|
|
2018-12-27 11:12:48 +01:00
|
|
|
YankRing-vim = super.YankRing-vim.overrideAttrs(old: {
|
2018-09-14 06:36:29 +02:00
|
|
|
sourceRoot = ".";
|
|
|
|
});
|
|
|
|
|
2018-12-27 11:12:48 +01:00
|
|
|
youcompleteme = super.youcompleteme.overrideAttrs(old: {
|
2018-09-14 06:36:29 +02:00
|
|
|
buildPhase = ''
|
|
|
|
substituteInPlace plugin/youcompleteme.vim \
|
|
|
|
--replace "'ycm_path_to_python_interpreter', '''" \
|
|
|
|
"'ycm_path_to_python_interpreter', '${python}/bin/python'"
|
|
|
|
|
|
|
|
rm -r third_party/ycmd
|
|
|
|
ln -s ${ycmd}/lib/ycmd third_party
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "A code-completion engine for Vim";
|
|
|
|
homepage = https://github.com/Valloric/YouCompleteMe;
|
|
|
|
license = stdenv.lib.licenses.gpl3;
|
|
|
|
maintainers = with stdenv.lib.maintainers; [marcweber jagajaga];
|
|
|
|
platforms = stdenv.lib.platforms.unix;
|
|
|
|
};
|
|
|
|
});
|
|
|
|
|
2018-12-27 11:12:48 +01:00
|
|
|
jedi-vim = super.jedi-vim.overrideAttrs(old: {
|
2018-11-04 13:23:26 +01:00
|
|
|
# checking for python3 support in vim would be neat, too, but nobody else seems to care
|
2018-12-27 11:12:48 +01:00
|
|
|
buildInputs = [ python3.pkgs.jedi ];
|
2018-11-04 13:23:26 +01:00
|
|
|
meta = {
|
|
|
|
description = "code-completion for python using python-jedi";
|
|
|
|
license = stdenv.lib.licenses.mit;
|
|
|
|
};
|
|
|
|
});
|
|
|
|
|
2019-03-26 22:08:21 +01:00
|
|
|
vim-stylish-haskell = super.vim-stylish-haskell.overrideAttrs (old: {
|
|
|
|
postPatch = old.postPatch or "" + ''
|
|
|
|
substituteInPlace ftplugin/haskell/stylish-haskell.vim --replace \
|
|
|
|
'g:stylish_haskell_command = "stylish-haskell"' \
|
|
|
|
'g:stylish_haskell_command = "${stylish-haskell}/bin/stylish-haskell"'
|
|
|
|
'';
|
|
|
|
});
|
|
|
|
|
2019-03-04 08:33:14 +01:00
|
|
|
vCoolor-vim = super.vCoolor-vim.overrideAttrs(old: {
|
|
|
|
# on linux can use either Zenity or Yad.
|
|
|
|
propagatedBuildInputs = [ gnome3.zenity ];
|
|
|
|
meta = {
|
|
|
|
description = "Simple color selector/picker plugin";
|
|
|
|
license = stdenv.lib.licenses.publicDomain;
|
|
|
|
};
|
|
|
|
});
|
2019-03-11 03:44:01 +01:00
|
|
|
|
|
|
|
unicode-vim = let
|
|
|
|
unicode-data = fetchurl {
|
|
|
|
url = http://www.unicode.org/Public/UNIDATA/UnicodeData.txt;
|
|
|
|
sha256 = "16b0jzvvzarnlxdvs2izd5ia0ipbd87md143dc6lv6xpdqcs75s9";
|
|
|
|
};
|
|
|
|
in super.unicode-vim.overrideAttrs(old: {
|
|
|
|
|
|
|
|
# redirect to /dev/null else changes terminal color
|
|
|
|
buildPhase = ''
|
|
|
|
cp "${unicode-data}" autoload/unicode/UnicodeData.txt
|
|
|
|
echo "Building unicode cache"
|
|
|
|
${vim}/bin/vim --cmd ":set rtp^=$PWD" -c 'ru plugin/unicode.vim' -c 'UnicodeCache' -c ':echohl Normal' -c ':q' > /dev/null
|
|
|
|
'';
|
|
|
|
});
|
2018-09-14 06:36:29 +02:00
|
|
|
}
|