vimPlugins: format overrides.nix with nixpkgs-fmt 1.0
This commit is contained in:
parent
837b4d86ba
commit
360d4c3073
@ -1,39 +1,82 @@
|
|||||||
{ lib, stdenv
|
{ lib
|
||||||
, python, cmake, meson, vim, ruby
|
, stdenv
|
||||||
, which, fetchFromGitHub, fetchgit, fetchurl, fetchzip, fetchpatch
|
, python
|
||||||
, llvmPackages, rustPlatform, buildGoModule
|
, cmake
|
||||||
, pkg-config, curl, openssl, libgit2, libiconv
|
, meson
|
||||||
, xkb-switch, fzf, skim, stylish-haskell
|
, vim
|
||||||
, python3, boost, icu, ncurses
|
, ruby
|
||||||
, ycmd, rake
|
, which
|
||||||
, gobject-introspection, glib, wrapGAppsHook
|
, fetchFromGitHub
|
||||||
|
, fetchgit
|
||||||
|
, fetchurl
|
||||||
|
, fetchzip
|
||||||
|
, fetchpatch
|
||||||
|
, llvmPackages
|
||||||
|
, rustPlatform
|
||||||
|
, buildGoModule
|
||||||
|
, pkg-config
|
||||||
|
, curl
|
||||||
|
, openssl
|
||||||
|
, libgit2
|
||||||
|
, libiconv
|
||||||
|
, xkb-switch
|
||||||
|
, fzf
|
||||||
|
, skim
|
||||||
|
, stylish-haskell
|
||||||
|
, python3
|
||||||
|
, boost
|
||||||
|
, icu
|
||||||
|
, ncurses
|
||||||
|
, ycmd
|
||||||
|
, rake
|
||||||
|
, gobject-introspection
|
||||||
|
, glib
|
||||||
|
, wrapGAppsHook
|
||||||
, substituteAll
|
, substituteAll
|
||||||
, languagetool
|
, languagetool
|
||||||
, tabnine
|
, tabnine
|
||||||
, Cocoa, CoreFoundation, CoreServices
|
|
||||||
|
, Cocoa
|
||||||
|
, CoreFoundation
|
||||||
|
, CoreServices
|
||||||
|
|
||||||
, buildVimPluginFrom2Nix
|
, buildVimPluginFrom2Nix
|
||||||
, nodePackages
|
, nodePackages
|
||||||
, dasht
|
, dasht
|
||||||
, sqlite
|
, sqlite
|
||||||
, code-minimap
|
, code-minimap
|
||||||
|
|
||||||
# deoplete-khard dependency
|
# deoplete-khard dependency
|
||||||
, khard
|
, khard
|
||||||
|
|
||||||
# vim-go dependencies
|
# vim-go dependencies
|
||||||
, asmfmt, delve, errcheck, godef, golint
|
, asmfmt
|
||||||
, gomodifytags, gotags, gotools, go-motion
|
, delve
|
||||||
, gnused, reftools, gogetdoc, golangci-lint
|
, errcheck
|
||||||
, impl, iferr, gocode, gocode-gomod, go-tools
|
, godef
|
||||||
|
, golint
|
||||||
|
, gomodifytags
|
||||||
|
, gotags
|
||||||
|
, gotools
|
||||||
|
, go-motion
|
||||||
|
, gnused
|
||||||
|
, reftools
|
||||||
|
, gogetdoc
|
||||||
|
, golangci-lint
|
||||||
|
, impl
|
||||||
|
, iferr
|
||||||
|
, gocode
|
||||||
|
, gocode-gomod
|
||||||
|
, go-tools
|
||||||
, gopls
|
, gopls
|
||||||
|
|
||||||
# direnv-vim dependencies
|
# direnv-vim dependencies
|
||||||
, direnv
|
, direnv
|
||||||
|
|
||||||
# vCoolor dependency
|
# vCoolor dependency
|
||||||
, gnome3
|
, gnome3
|
||||||
|
|
||||||
# fruzzy dependency
|
# fruzzy dependency
|
||||||
, nim
|
, nim
|
||||||
}:
|
}:
|
||||||
|
|
||||||
@ -61,7 +104,8 @@ self: super: {
|
|||||||
src = skim.vim;
|
src = skim.vim;
|
||||||
};
|
};
|
||||||
|
|
||||||
LanguageClient-neovim = let
|
LanguageClient-neovim =
|
||||||
|
let
|
||||||
version = "0.1.160";
|
version = "0.1.160";
|
||||||
LanguageClient-neovim-src = fetchFromGitHub {
|
LanguageClient-neovim-src = fetchFromGitHub {
|
||||||
owner = "autozimu";
|
owner = "autozimu";
|
||||||
@ -83,7 +127,8 @@ self: super: {
|
|||||||
export NIX_LDFLAGS="-F${CoreFoundation}/Library/Frameworks -framework CoreFoundation $NIX_LDFLAGS"
|
export NIX_LDFLAGS="-F${CoreFoundation}/Library/Frameworks -framework CoreFoundation $NIX_LDFLAGS"
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
in buildVimPluginFrom2Nix {
|
in
|
||||||
|
buildVimPluginFrom2Nix {
|
||||||
pname = "LanguageClient-neovim";
|
pname = "LanguageClient-neovim";
|
||||||
inherit version;
|
inherit version;
|
||||||
src = LanguageClient-neovim-src;
|
src = LanguageClient-neovim-src;
|
||||||
@ -96,7 +141,7 @@ self: super: {
|
|||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
clang_complete = super.clang_complete.overrideAttrs(old: {
|
clang_complete = super.clang_complete.overrideAttrs (old: {
|
||||||
# In addition to the arguments you pass to your compiler, you also need to
|
# 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++).
|
# 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).
|
# These usually implicitly set by cc-wrapper around clang (pkgs/build-support/cc-wrapper).
|
||||||
@ -111,7 +156,7 @@ self: super: {
|
|||||||
'';
|
'';
|
||||||
});
|
});
|
||||||
|
|
||||||
direnv-vim = super.direnv-vim.overrideAttrs(oa: {
|
direnv-vim = super.direnv-vim.overrideAttrs (oa: {
|
||||||
preFixup = oa.preFixup or "" + ''
|
preFixup = oa.preFixup or "" + ''
|
||||||
substituteInPlace $out/share/vim-plugins/direnv-vim/autoload/direnv.vim \
|
substituteInPlace $out/share/vim-plugins/direnv-vim/autoload/direnv.vim \
|
||||||
--replace "let s:direnv_cmd = get(g:, 'direnv_cmd', 'direnv')" \
|
--replace "let s:direnv_cmd = get(g:, 'direnv_cmd', 'direnv')" \
|
||||||
@ -119,14 +164,14 @@ self: super: {
|
|||||||
'';
|
'';
|
||||||
});
|
});
|
||||||
|
|
||||||
clighter8 = super.clighter8.overrideAttrs(old: {
|
clighter8 = super.clighter8.overrideAttrs (old: {
|
||||||
preFixup = ''
|
preFixup = ''
|
||||||
sed "/^let g:clighter8_libclang_path/s|')$|${llvmPackages.clang.cc.lib}/lib/libclang.so')|" \
|
sed "/^let g:clighter8_libclang_path/s|')$|${llvmPackages.clang.cc.lib}/lib/libclang.so')|" \
|
||||||
-i "$out"/share/vim-plugins/clighter8/plugin/clighter8.vim
|
-i "$out"/share/vim-plugins/clighter8/plugin/clighter8.vim
|
||||||
'';
|
'';
|
||||||
});
|
});
|
||||||
|
|
||||||
command-t = super.command-t.overrideAttrs(old: {
|
command-t = super.command-t.overrideAttrs (old: {
|
||||||
buildInputs = [ ruby rake ];
|
buildInputs = [ ruby rake ];
|
||||||
buildPhase = ''
|
buildPhase = ''
|
||||||
rake make
|
rake make
|
||||||
@ -134,7 +179,7 @@ self: super: {
|
|||||||
'';
|
'';
|
||||||
});
|
});
|
||||||
|
|
||||||
cpsm = super.cpsm.overrideAttrs(old: {
|
cpsm = super.cpsm.overrideAttrs (old: {
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
python3
|
python3
|
||||||
stdenv
|
stdenv
|
||||||
@ -150,7 +195,7 @@ self: super: {
|
|||||||
'';
|
'';
|
||||||
});
|
});
|
||||||
|
|
||||||
ctrlp-cmatcher = super.ctrlp-cmatcher.overrideAttrs(old: {
|
ctrlp-cmatcher = super.ctrlp-cmatcher.overrideAttrs (old: {
|
||||||
buildInputs = [ python ];
|
buildInputs = [ python ];
|
||||||
buildPhase = ''
|
buildPhase = ''
|
||||||
patchShebangs .
|
patchShebangs .
|
||||||
@ -158,15 +203,15 @@ self: super: {
|
|||||||
'';
|
'';
|
||||||
});
|
});
|
||||||
|
|
||||||
defx-nvim = super.defx-nvim.overrideAttrs(old: {
|
defx-nvim = super.defx-nvim.overrideAttrs (old: {
|
||||||
dependencies = with super; [ nvim-yarp ];
|
dependencies = with super; [ nvim-yarp ];
|
||||||
});
|
});
|
||||||
|
|
||||||
deoplete-fish = super.deoplete-fish.overrideAttrs(old: {
|
deoplete-fish = super.deoplete-fish.overrideAttrs (old: {
|
||||||
dependencies = with super; [ deoplete-nvim vim-fish ];
|
dependencies = with super; [ deoplete-nvim vim-fish ];
|
||||||
});
|
});
|
||||||
|
|
||||||
deoplete-go = super.deoplete-go.overrideAttrs(old: {
|
deoplete-go = super.deoplete-go.overrideAttrs (old: {
|
||||||
buildInputs = [ python3 ];
|
buildInputs = [ python3 ];
|
||||||
buildPhase = ''
|
buildPhase = ''
|
||||||
pushd ./rplugin/python3/deoplete/ujson
|
pushd ./rplugin/python3/deoplete/ujson
|
||||||
@ -176,7 +221,7 @@ self: super: {
|
|||||||
'';
|
'';
|
||||||
});
|
});
|
||||||
|
|
||||||
deoplete-khard = super.deoplete-khard.overrideAttrs(old: {
|
deoplete-khard = super.deoplete-khard.overrideAttrs (old: {
|
||||||
dependencies = [ self.deoplete-nvim ];
|
dependencies = [ self.deoplete-nvim ];
|
||||||
passthru.python3Dependencies = ps: [ (ps.toPythonModule khard) ];
|
passthru.python3Dependencies = ps: [ (ps.toPythonModule khard) ];
|
||||||
meta = {
|
meta = {
|
||||||
@ -187,16 +232,18 @@ self: super: {
|
|||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
ensime-vim = super.ensime-vim.overrideAttrs(old: {
|
ensime-vim = super.ensime-vim.overrideAttrs (old: {
|
||||||
passthru.python3Dependencies = ps: with ps; [ sexpdata websocket_client ];
|
passthru.python3Dependencies = ps: with ps; [ sexpdata websocket_client ];
|
||||||
dependencies = with super; [ vimproc-vim vimshell-vim super.self forms ];
|
dependencies = with super; [ vimproc-vim vimshell-vim super.self forms ];
|
||||||
});
|
});
|
||||||
|
|
||||||
forms = super.forms.overrideAttrs(old: {
|
forms = super.forms.overrideAttrs (old: {
|
||||||
dependencies = with super; [ super.self ];
|
dependencies = with super; [ super.self ];
|
||||||
});
|
});
|
||||||
|
|
||||||
fruzzy = let # until https://github.com/NixOS/nixpkgs/pull/67878 is merged, there's no better way to install nim libraries with nix
|
fruzzy =
|
||||||
|
let
|
||||||
|
# until https://github.com/NixOS/nixpkgs/pull/67878 is merged, there's no better way to install nim libraries with nix
|
||||||
nimpy = fetchFromGitHub {
|
nimpy = fetchFromGitHub {
|
||||||
owner = "yglukhov";
|
owner = "yglukhov";
|
||||||
repo = "nimpy";
|
repo = "nimpy";
|
||||||
@ -209,7 +256,8 @@ self: super: {
|
|||||||
rev = "c38039309cb11391112571aa332df9c55f625b54";
|
rev = "c38039309cb11391112571aa332df9c55f625b54";
|
||||||
sha256 = "05xdy13vm5n8dw2i366ppbznc4cfhq23rdcklisbaklz2jhdx352";
|
sha256 = "05xdy13vm5n8dw2i366ppbznc4cfhq23rdcklisbaklz2jhdx352";
|
||||||
};
|
};
|
||||||
in super.fruzzy.overrideAttrs(old: {
|
in
|
||||||
|
super.fruzzy.overrideAttrs (old: {
|
||||||
buildInputs = [ nim ];
|
buildInputs = [ nim ];
|
||||||
patches = [
|
patches = [
|
||||||
(substituteAll {
|
(substituteAll {
|
||||||
@ -228,11 +276,11 @@ self: super: {
|
|||||||
'';
|
'';
|
||||||
});
|
});
|
||||||
|
|
||||||
ghcid = super.ghcid.overrideAttrs(old: {
|
ghcid = super.ghcid.overrideAttrs (old: {
|
||||||
configurePhase = "cd plugins/nvim";
|
configurePhase = "cd plugins/nvim";
|
||||||
});
|
});
|
||||||
|
|
||||||
vimsence = super.vimsence.overrideAttrs(old: {
|
vimsence = super.vimsence.overrideAttrs (old: {
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Discord rich presence for Vim";
|
description = "Discord rich presence for Vim";
|
||||||
homepage = "https://github.com/hugolgst/vimsence";
|
homepage = "https://github.com/hugolgst/vimsence";
|
||||||
@ -240,11 +288,11 @@ self: super: {
|
|||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
vim-gist = super.vim-gist.overrideAttrs(old: {
|
vim-gist = super.vim-gist.overrideAttrs (old: {
|
||||||
dependencies = with super; [ webapi-vim ];
|
dependencies = with super; [ webapi-vim ];
|
||||||
});
|
});
|
||||||
|
|
||||||
minimap-vim = super.minimap-vim.overrideAttrs(old: {
|
minimap-vim = super.minimap-vim.overrideAttrs (old: {
|
||||||
preFixup = ''
|
preFixup = ''
|
||||||
substituteInPlace $out/share/vim-plugins/minimap-vim/plugin/minimap.vim \
|
substituteInPlace $out/share/vim-plugins/minimap-vim/plugin/minimap.vim \
|
||||||
--replace "code-minimap" "${code-minimap}/bin/code-minimap"
|
--replace "code-minimap" "${code-minimap}/bin/code-minimap"
|
||||||
@ -259,51 +307,52 @@ self: super: {
|
|||||||
meta.maintainers = with lib.maintainers; [ vcunat ];
|
meta.maintainers = with lib.maintainers; [ vcunat ];
|
||||||
};
|
};
|
||||||
|
|
||||||
ncm2 = super.ncm2.overrideAttrs(old: {
|
ncm2 = super.ncm2.overrideAttrs (old: {
|
||||||
dependencies = with super; [ nvim-yarp ];
|
dependencies = with super; [ nvim-yarp ];
|
||||||
});
|
});
|
||||||
|
|
||||||
ncm2-jedi = super.ncm2-jedi.overrideAttrs(old: {
|
ncm2-jedi = super.ncm2-jedi.overrideAttrs (old: {
|
||||||
dependencies = with super; [ nvim-yarp ncm2 ];
|
dependencies = with super; [ nvim-yarp ncm2 ];
|
||||||
passthru.python3Dependencies = ps: with ps; [ jedi ];
|
passthru.python3Dependencies = ps: with ps; [ jedi ];
|
||||||
});
|
});
|
||||||
|
|
||||||
ncm2-neoinclude = super.ncm2-neoinclude.overrideAttrs(old: {
|
ncm2-neoinclude = super.ncm2-neoinclude.overrideAttrs (old: {
|
||||||
dependencies = with super; [ neoinclude-vim ];
|
dependencies = with super; [ neoinclude-vim ];
|
||||||
});
|
});
|
||||||
|
|
||||||
ncm2-neosnippet = super.ncm2-neosnippet.overrideAttrs(old: {
|
ncm2-neosnippet = super.ncm2-neosnippet.overrideAttrs (old: {
|
||||||
dependencies = with super; [ neosnippet-vim ];
|
dependencies = with super; [ neosnippet-vim ];
|
||||||
});
|
});
|
||||||
|
|
||||||
ncm2-syntax = super.ncm2-syntax.overrideAttrs(old: {
|
ncm2-syntax = super.ncm2-syntax.overrideAttrs (old: {
|
||||||
dependencies = with super; [ neco-syntax ];
|
dependencies = with super; [ neco-syntax ];
|
||||||
});
|
});
|
||||||
|
|
||||||
ncm2-ultisnips = super.ncm2-ultisnips.overrideAttrs(old: {
|
ncm2-ultisnips = super.ncm2-ultisnips.overrideAttrs (old: {
|
||||||
dependencies = with super; [ ultisnips ];
|
dependencies = with super; [ ultisnips ];
|
||||||
});
|
});
|
||||||
|
|
||||||
nvim-lsputils = super.nvim-lsputils.overrideAttrs(old: {
|
nvim-lsputils = super.nvim-lsputils.overrideAttrs (old: {
|
||||||
dependencies = with super; [ popfix ];
|
dependencies = with super; [ popfix ];
|
||||||
});
|
});
|
||||||
|
|
||||||
fzf-vim = super.fzf-vim.overrideAttrs(old: {
|
fzf-vim = super.fzf-vim.overrideAttrs (old: {
|
||||||
dependencies = [ self.fzfWrapper ];
|
dependencies = [ self.fzfWrapper ];
|
||||||
});
|
});
|
||||||
|
|
||||||
skim-vim = super.skim-vim.overrideAttrs(old: {
|
skim-vim = super.skim-vim.overrideAttrs (old: {
|
||||||
dependencies = [ self.skim ];
|
dependencies = [ self.skim ];
|
||||||
});
|
});
|
||||||
|
|
||||||
sql-nvim = super.sql-nvim.overrideAttrs(old: {
|
sql-nvim = super.sql-nvim.overrideAttrs (old: {
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
substituteInPlace lua/sql/defs.lua \
|
substituteInPlace lua/sql/defs.lua \
|
||||||
--replace "vim.g.sql_clib_path or" "vim.g.sql_clib_path or '${sqlite.out}/lib/libsqlite3.so' or"
|
--replace "vim.g.sql_clib_path or" "vim.g.sql_clib_path or '${sqlite.out}/lib/libsqlite3.so' or"
|
||||||
'';
|
'';
|
||||||
});
|
});
|
||||||
|
|
||||||
sved = let
|
sved =
|
||||||
|
let
|
||||||
# we put the script in its own derivation to benefit the magic of wrapGAppsHook
|
# we put the script in its own derivation to benefit the magic of wrapGAppsHook
|
||||||
svedbackend = stdenv.mkDerivation {
|
svedbackend = stdenv.mkDerivation {
|
||||||
name = "svedbackend-${super.sved.name}";
|
name = "svedbackend-${super.sved.name}";
|
||||||
@ -312,7 +361,7 @@ self: super: {
|
|||||||
buildInputs = [
|
buildInputs = [
|
||||||
gobject-introspection
|
gobject-introspection
|
||||||
glib
|
glib
|
||||||
(python3.withPackages(ps: with ps; [ pygobject3 pynvim dbus-python ]))
|
(python3.withPackages (ps: with ps; [ pygobject3 pynvim dbus-python ]))
|
||||||
];
|
];
|
||||||
preferLocalBuild = true;
|
preferLocalBuild = true;
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
@ -320,7 +369,7 @@ self: super: {
|
|||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
super.sved.overrideAttrs(old: {
|
super.sved.overrideAttrs (old: {
|
||||||
preferLocalBuild = true;
|
preferLocalBuild = true;
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
rm ftplugin/evinceSync.py
|
rm ftplugin/evinceSync.py
|
||||||
@ -331,7 +380,7 @@ self: super: {
|
|||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
vimacs = super.vimacs.overrideAttrs(old: {
|
vimacs = super.vimacs.overrideAttrs (old: {
|
||||||
buildPhase = ''
|
buildPhase = ''
|
||||||
substituteInPlace bin/vim \
|
substituteInPlace bin/vim \
|
||||||
--replace '/usr/bin/vim' 'vim' \
|
--replace '/usr/bin/vim' 'vim' \
|
||||||
@ -347,73 +396,74 @@ self: super: {
|
|||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
vimshell-vim = super.vimshell-vim.overrideAttrs(old: {
|
vimshell-vim = super.vimshell-vim.overrideAttrs (old: {
|
||||||
dependencies = with super; [ vimproc-vim ];
|
dependencies = with super; [ vimproc-vim ];
|
||||||
});
|
});
|
||||||
|
|
||||||
vim-addon-manager = super.vim-addon-manager.overrideAttrs(old: {
|
vim-addon-manager = super.vim-addon-manager.overrideAttrs (old: {
|
||||||
buildInputs = lib.optional stdenv.isDarwin Cocoa;
|
buildInputs = lib.optional stdenv.isDarwin Cocoa;
|
||||||
});
|
});
|
||||||
|
|
||||||
vim-addon-actions = super.vim-addon-actions.overrideAttrs(old: {
|
vim-addon-actions = super.vim-addon-actions.overrideAttrs (old: {
|
||||||
dependencies = with super; [ vim-addon-mw-utils tlib_vim ];
|
dependencies = with super; [ vim-addon-mw-utils tlib_vim ];
|
||||||
});
|
});
|
||||||
|
|
||||||
vim-addon-async = super.vim-addon-async.overrideAttrs(old: {
|
vim-addon-async = super.vim-addon-async.overrideAttrs (old: {
|
||||||
dependencies = with super; [ vim-addon-signs ];
|
dependencies = with super; [ vim-addon-signs ];
|
||||||
});
|
});
|
||||||
|
|
||||||
vim-addon-background-cmd = super.vim-addon-background-cmd.overrideAttrs(old: {
|
vim-addon-background-cmd = super.vim-addon-background-cmd.overrideAttrs (old: {
|
||||||
dependencies = with super; [ vim-addon-mw-utils ];
|
dependencies = with super; [ vim-addon-mw-utils ];
|
||||||
});
|
});
|
||||||
|
|
||||||
vim-addon-completion = super.vim-addon-completion.overrideAttrs(old: {
|
vim-addon-completion = super.vim-addon-completion.overrideAttrs (old: {
|
||||||
dependencies = with super; [ tlib_vim ];
|
dependencies = with super; [ tlib_vim ];
|
||||||
});
|
});
|
||||||
|
|
||||||
vim-addon-goto-thing-at-cursor = super.vim-addon-goto-thing-at-cursor.overrideAttrs(old: {
|
vim-addon-goto-thing-at-cursor = super.vim-addon-goto-thing-at-cursor.overrideAttrs (old: {
|
||||||
dependencies = with super; [ tlib_vim ];
|
dependencies = with super; [ tlib_vim ];
|
||||||
});
|
});
|
||||||
|
|
||||||
vim-addon-mru = super.vim-addon-mru.overrideAttrs(old: {
|
vim-addon-mru = super.vim-addon-mru.overrideAttrs (old: {
|
||||||
dependencies = with super; [ vim-addon-other vim-addon-mw-utils ];
|
dependencies = with super; [ vim-addon-other vim-addon-mw-utils ];
|
||||||
});
|
});
|
||||||
|
|
||||||
vim-addon-nix = super.vim-addon-nix.overrideAttrs(old: {
|
vim-addon-nix = super.vim-addon-nix.overrideAttrs (old: {
|
||||||
dependencies = with super; [
|
dependencies = with super; [
|
||||||
vim-addon-completion
|
vim-addon-completion
|
||||||
vim-addon-goto-thing-at-cursor
|
vim-addon-goto-thing-at-cursor
|
||||||
vim-addon-errorformats
|
vim-addon-errorformats
|
||||||
vim-addon-actions
|
vim-addon-actions
|
||||||
vim-addon-mw-utils tlib_vim
|
vim-addon-mw-utils
|
||||||
|
tlib_vim
|
||||||
];
|
];
|
||||||
});
|
});
|
||||||
|
|
||||||
vim-addon-sql = super.vim-addon-sql.overrideAttrs(old: {
|
vim-addon-sql = super.vim-addon-sql.overrideAttrs (old: {
|
||||||
dependencies = with super; [ vim-addon-completion vim-addon-background-cmd tlib_vim ];
|
dependencies = with super; [ vim-addon-completion vim-addon-background-cmd tlib_vim ];
|
||||||
});
|
});
|
||||||
|
|
||||||
vim-addon-syntax-checker = super.vim-addon-syntax-checker.overrideAttrs(old: {
|
vim-addon-syntax-checker = super.vim-addon-syntax-checker.overrideAttrs (old: {
|
||||||
dependencies = with super; [ vim-addon-mw-utils tlib_vim ];
|
dependencies = with super; [ vim-addon-mw-utils tlib_vim ];
|
||||||
});
|
});
|
||||||
|
|
||||||
vim-addon-toggle-buffer = super.vim-addon-toggle-buffer.overrideAttrs(old: {
|
vim-addon-toggle-buffer = super.vim-addon-toggle-buffer.overrideAttrs (old: {
|
||||||
dependencies = with super; [ vim-addon-mw-utils tlib_vim ];
|
dependencies = with super; [ vim-addon-mw-utils tlib_vim ];
|
||||||
});
|
});
|
||||||
|
|
||||||
vim-addon-xdebug = super.vim-addon-xdebug.overrideAttrs(old: {
|
vim-addon-xdebug = super.vim-addon-xdebug.overrideAttrs (old: {
|
||||||
dependencies = with super; [ webapi-vim vim-addon-mw-utils vim-addon-signs vim-addon-async ];
|
dependencies = with super; [ webapi-vim vim-addon-mw-utils vim-addon-signs vim-addon-async ];
|
||||||
});
|
});
|
||||||
|
|
||||||
vim-bazel = super.vim-bazel.overrideAttrs(old: {
|
vim-bazel = super.vim-bazel.overrideAttrs (old: {
|
||||||
dependencies = with super; [ vim-maktaba ];
|
dependencies = with super; [ vim-maktaba ];
|
||||||
});
|
});
|
||||||
|
|
||||||
vim-beancount = super.vim-beancount.overrideAttrs(old: {
|
vim-beancount = super.vim-beancount.overrideAttrs (old: {
|
||||||
passthru.python3Dependencies = ps: with ps; [ beancount ];
|
passthru.python3Dependencies = ps: with ps; [ beancount ];
|
||||||
});
|
});
|
||||||
|
|
||||||
vim-closer = super.vim-closer.overrideAttrs(old: {
|
vim-closer = super.vim-closer.overrideAttrs (old: {
|
||||||
patches = [
|
patches = [
|
||||||
# Fix duplicate tag in doc
|
# Fix duplicate tag in doc
|
||||||
(fetchpatch {
|
(fetchpatch {
|
||||||
@ -423,21 +473,22 @@ self: super: {
|
|||||||
];
|
];
|
||||||
});
|
});
|
||||||
|
|
||||||
vim-codefmt = super.vim-codefmt.overrideAttrs(old: {
|
vim-codefmt = super.vim-codefmt.overrideAttrs (old: {
|
||||||
dependencies = with super; [ vim-maktaba ];
|
dependencies = with super; [ vim-maktaba ];
|
||||||
});
|
});
|
||||||
|
|
||||||
vim-dasht = super.vim-dasht.overrideAttrs(old: {
|
vim-dasht = super.vim-dasht.overrideAttrs (old: {
|
||||||
preFixup = ''
|
preFixup = ''
|
||||||
substituteInPlace $out/share/vim-plugins/vim-dasht/autoload/dasht.vim \
|
substituteInPlace $out/share/vim-plugins/vim-dasht/autoload/dasht.vim \
|
||||||
--replace "['dasht']" "['${dasht}/bin/dasht']"
|
--replace "['dasht']" "['${dasht}/bin/dasht']"
|
||||||
'';
|
'';
|
||||||
});
|
});
|
||||||
|
|
||||||
vim-easytags = super.vim-easytags.overrideAttrs(old: {
|
vim-easytags = super.vim-easytags.overrideAttrs (old: {
|
||||||
dependencies = with super; [ vim-misc ];
|
dependencies = with super; [ vim-misc ];
|
||||||
patches = [
|
patches = [
|
||||||
(fetchpatch { # https://github.com/xolox/vim-easytags/pull/170 fix version detection for universal-ctags
|
(fetchpatch {
|
||||||
|
# https://github.com/xolox/vim-easytags/pull/170 fix version detection for universal-ctags
|
||||||
url = "https://github.com/xolox/vim-easytags/commit/46e4709500ba3b8e6cf3e90aeb95736b19e49be9.patch";
|
url = "https://github.com/xolox/vim-easytags/commit/46e4709500ba3b8e6cf3e90aeb95736b19e49be9.patch";
|
||||||
sha256 = "0x0xabb56xkgdqrg1mpvhbi3yw4d829n73lsnnyj5yrxjffy4ax4";
|
sha256 = "0x0xabb56xkgdqrg1mpvhbi3yw4d829n73lsnnyj5yrxjffy4ax4";
|
||||||
})
|
})
|
||||||
@ -447,7 +498,8 @@ self: super: {
|
|||||||
# change the go_bin_path to point to a path in the nix store. See the code in
|
# change the go_bin_path to point to a path in the nix store. See the code in
|
||||||
# fatih/vim-go here
|
# fatih/vim-go here
|
||||||
# https://github.com/fatih/vim-go/blob/155836d47052ea9c9bac81ba3e937f6f22c8e384/autoload/go/path.vim#L154-L159
|
# https://github.com/fatih/vim-go/blob/155836d47052ea9c9bac81ba3e937f6f22c8e384/autoload/go/path.vim#L154-L159
|
||||||
vim-go = super.vim-go.overrideAttrs(old: let
|
vim-go = super.vim-go.overrideAttrs (old:
|
||||||
|
let
|
||||||
binPath = lib.makeBinPath [
|
binPath = lib.makeBinPath [
|
||||||
asmfmt
|
asmfmt
|
||||||
delve
|
delve
|
||||||
@ -468,7 +520,8 @@ self: super: {
|
|||||||
impl
|
impl
|
||||||
reftools
|
reftools
|
||||||
];
|
];
|
||||||
in {
|
in
|
||||||
|
{
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
${gnused}/bin/sed \
|
${gnused}/bin/sed \
|
||||||
-Ee 's@"go_bin_path", ""@"go_bin_path", "${binPath}"@g' \
|
-Ee 's@"go_bin_path", ""@"go_bin_path", "${binPath}"@g' \
|
||||||
@ -476,7 +529,7 @@ self: super: {
|
|||||||
'';
|
'';
|
||||||
});
|
});
|
||||||
|
|
||||||
vim-grammarous = super.vim-grammarous.overrideAttrs(old: {
|
vim-grammarous = super.vim-grammarous.overrideAttrs (old: {
|
||||||
# use `:GrammarousCheck` to initialize checking
|
# use `:GrammarousCheck` to initialize checking
|
||||||
# In neovim, you also want to use set
|
# In neovim, you also want to use set
|
||||||
# let g:grammarous#show_first_error = 1
|
# let g:grammarous#show_first_error = 1
|
||||||
@ -489,7 +542,7 @@ self: super: {
|
|||||||
];
|
];
|
||||||
});
|
});
|
||||||
|
|
||||||
lens-vim = super.lens-vim.overrideAttrs(old: {
|
lens-vim = super.lens-vim.overrideAttrs (old: {
|
||||||
# remove duplicate g:lens#animate in doc/lens.txt
|
# remove duplicate g:lens#animate in doc/lens.txt
|
||||||
# https://github.com/NixOS/nixpkgs/pull/105810#issuecomment-740007985
|
# https://github.com/NixOS/nixpkgs/pull/105810#issuecomment-740007985
|
||||||
# https://github.com/camspiers/lens.vim/pull/40/files
|
# https://github.com/camspiers/lens.vim/pull/40/files
|
||||||
@ -501,11 +554,11 @@ self: super: {
|
|||||||
];
|
];
|
||||||
});
|
});
|
||||||
|
|
||||||
vim-hier = super.vim-hier.overrideAttrs(old: {
|
vim-hier = super.vim-hier.overrideAttrs (old: {
|
||||||
buildInputs = [ vim ];
|
buildInputs = [ vim ];
|
||||||
});
|
});
|
||||||
|
|
||||||
vim-isort = super.vim-isort.overrideAttrs(old: {
|
vim-isort = super.vim-isort.overrideAttrs (old: {
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
substituteInPlace ftplugin/python_vimisort.vim \
|
substituteInPlace ftplugin/python_vimisort.vim \
|
||||||
--replace 'import vim' 'import vim; import sys; sys.path.append("${python.pkgs.isort}/${python.sitePackages}")'
|
--replace 'import vim' 'import vim; import sys; sys.path.append("${python.pkgs.isort}/${python.sitePackages}")'
|
||||||
@ -519,7 +572,8 @@ self: super: {
|
|||||||
inherit (super.vim-markdown-composer) src version;
|
inherit (super.vim-markdown-composer) src version;
|
||||||
cargoSha256 = "iuhq2Zhdkib8hw4uvXBjwE5ZiN1kzairlzufaGuVkWc=";
|
cargoSha256 = "iuhq2Zhdkib8hw4uvXBjwE5ZiN1kzairlzufaGuVkWc=";
|
||||||
};
|
};
|
||||||
in super.vim-markdown-composer.overrideAttrs(oldAttrs: rec {
|
in
|
||||||
|
super.vim-markdown-composer.overrideAttrs (oldAttrs: rec {
|
||||||
preFixup = ''
|
preFixup = ''
|
||||||
substituteInPlace "$out"/share/vim-plugins/vim-markdown-composer/after/ftplugin/markdown/composer.vim \
|
substituteInPlace "$out"/share/vim-plugins/vim-markdown-composer/after/ftplugin/markdown/composer.vim \
|
||||||
--replace "let l:args = [s:plugin_root . '/target/release/markdown-composer']" \
|
--replace "let l:args = [s:plugin_root . '/target/release/markdown-composer']" \
|
||||||
@ -527,24 +581,24 @@ self: super: {
|
|||||||
'';
|
'';
|
||||||
});
|
});
|
||||||
|
|
||||||
vim-metamath = super.vim-metamath.overrideAttrs(old: {
|
vim-metamath = super.vim-metamath.overrideAttrs (old: {
|
||||||
preInstall = "cd vim";
|
preInstall = "cd vim";
|
||||||
});
|
});
|
||||||
|
|
||||||
vim-snipmate = super.vim-snipmate.overrideAttrs(old: {
|
vim-snipmate = super.vim-snipmate.overrideAttrs (old: {
|
||||||
dependencies = with super; [ vim-addon-mw-utils tlib_vim ];
|
dependencies = with super; [ vim-addon-mw-utils tlib_vim ];
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
vim-wakatime = super.vim-wakatime.overrideAttrs(old: {
|
vim-wakatime = super.vim-wakatime.overrideAttrs (old: {
|
||||||
buildInputs = [ python ];
|
buildInputs = [ python ];
|
||||||
});
|
});
|
||||||
|
|
||||||
vim-xdebug = super.vim-xdebug.overrideAttrs(old: {
|
vim-xdebug = super.vim-xdebug.overrideAttrs (old: {
|
||||||
postInstall = false;
|
postInstall = false;
|
||||||
});
|
});
|
||||||
|
|
||||||
vim-xkbswitch = super.vim-xkbswitch.overrideAttrs(old: {
|
vim-xkbswitch = super.vim-xkbswitch.overrideAttrs (old: {
|
||||||
patchPhase = ''
|
patchPhase = ''
|
||||||
substituteInPlace plugin/xkbswitch.vim \
|
substituteInPlace plugin/xkbswitch.vim \
|
||||||
--replace /usr/local/lib/libxkbswitch.so ${xkb-switch}/lib/libxkbswitch.so
|
--replace /usr/local/lib/libxkbswitch.so ${xkb-switch}/lib/libxkbswitch.so
|
||||||
@ -552,14 +606,14 @@ self: super: {
|
|||||||
buildInputs = [ xkb-switch ];
|
buildInputs = [ xkb-switch ];
|
||||||
});
|
});
|
||||||
|
|
||||||
vim-yapf = super.vim-yapf.overrideAttrs(old: {
|
vim-yapf = super.vim-yapf.overrideAttrs (old: {
|
||||||
buildPhase = ''
|
buildPhase = ''
|
||||||
substituteInPlace ftplugin/python_yapf.vim \
|
substituteInPlace ftplugin/python_yapf.vim \
|
||||||
--replace '"yapf"' '"${python3.pkgs.yapf}/bin/yapf"'
|
--replace '"yapf"' '"${python3.pkgs.yapf}/bin/yapf"'
|
||||||
'';
|
'';
|
||||||
});
|
});
|
||||||
|
|
||||||
vimproc-vim = super.vimproc-vim.overrideAttrs(old: {
|
vimproc-vim = super.vimproc-vim.overrideAttrs (old: {
|
||||||
buildInputs = [ which ];
|
buildInputs = [ which ];
|
||||||
|
|
||||||
buildPhase = ''
|
buildPhase = ''
|
||||||
@ -571,11 +625,11 @@ self: super: {
|
|||||||
'';
|
'';
|
||||||
});
|
});
|
||||||
|
|
||||||
YankRing-vim = super.YankRing-vim.overrideAttrs(old: {
|
YankRing-vim = super.YankRing-vim.overrideAttrs (old: {
|
||||||
sourceRoot = ".";
|
sourceRoot = ".";
|
||||||
});
|
});
|
||||||
|
|
||||||
YouCompleteMe = super.YouCompleteMe.overrideAttrs(old: {
|
YouCompleteMe = super.YouCompleteMe.overrideAttrs (old: {
|
||||||
buildPhase = ''
|
buildPhase = ''
|
||||||
substituteInPlace plugin/youcompleteme.vim \
|
substituteInPlace plugin/youcompleteme.vim \
|
||||||
--replace "'ycm_path_to_python_interpreter', '''" \
|
--replace "'ycm_path_to_python_interpreter', '''" \
|
||||||
@ -594,7 +648,7 @@ self: super: {
|
|||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
jedi-vim = super.jedi-vim.overrideAttrs(old: {
|
jedi-vim = super.jedi-vim.overrideAttrs (old: {
|
||||||
# checking for python3 support in vim would be neat, too, but nobody else seems to care
|
# checking for python3 support in vim would be neat, too, but nobody else seems to care
|
||||||
buildInputs = [ python3.pkgs.jedi ];
|
buildInputs = [ python3.pkgs.jedi ];
|
||||||
meta = {
|
meta = {
|
||||||
@ -603,7 +657,7 @@ self: super: {
|
|||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
lf-vim = super.lf-vim.overrideAttrs(old: {
|
lf-vim = super.lf-vim.overrideAttrs (old: {
|
||||||
dependencies = with super; [ bclose-vim ];
|
dependencies = with super; [ bclose-vim ];
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -615,7 +669,7 @@ self: super: {
|
|||||||
'';
|
'';
|
||||||
});
|
});
|
||||||
|
|
||||||
vCoolor-vim = super.vCoolor-vim.overrideAttrs(old: {
|
vCoolor-vim = super.vCoolor-vim.overrideAttrs (old: {
|
||||||
# on linux can use either Zenity or Yad.
|
# on linux can use either Zenity or Yad.
|
||||||
propagatedBuildInputs = [ gnome3.zenity ];
|
propagatedBuildInputs = [ gnome3.zenity ];
|
||||||
meta = {
|
meta = {
|
||||||
@ -624,12 +678,14 @@ self: super: {
|
|||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
unicode-vim = let
|
unicode-vim =
|
||||||
|
let
|
||||||
unicode-data = fetchurl {
|
unicode-data = fetchurl {
|
||||||
url = "http://www.unicode.org/Public/UNIDATA/UnicodeData.txt";
|
url = "http://www.unicode.org/Public/UNIDATA/UnicodeData.txt";
|
||||||
sha256 = "16b0jzvvzarnlxdvs2izd5ia0ipbd87md143dc6lv6xpdqcs75s9";
|
sha256 = "16b0jzvvzarnlxdvs2izd5ia0ipbd87md143dc6lv6xpdqcs75s9";
|
||||||
};
|
};
|
||||||
in super.unicode-vim.overrideAttrs(old: {
|
in
|
||||||
|
super.unicode-vim.overrideAttrs (old: {
|
||||||
|
|
||||||
# redirect to /dev/null else changes terminal color
|
# redirect to /dev/null else changes terminal color
|
||||||
buildPhase = ''
|
buildPhase = ''
|
||||||
@ -639,22 +695,25 @@ self: super: {
|
|||||||
'';
|
'';
|
||||||
});
|
});
|
||||||
|
|
||||||
vim-hexokinase = super.vim-hexokinase.overrideAttrs(old: {
|
vim-hexokinase = super.vim-hexokinase.overrideAttrs (old: {
|
||||||
preFixup = let
|
preFixup =
|
||||||
|
let
|
||||||
hexokinase = buildGoModule {
|
hexokinase = buildGoModule {
|
||||||
name = "hexokinase";
|
name = "hexokinase";
|
||||||
src = old.src + "/hexokinase";
|
src = old.src + "/hexokinase";
|
||||||
vendorSha256 = "pQpattmS9VmO3ZIQUFn66az8GSmB4IvYhTTCFn6SUmo=";
|
vendorSha256 = "pQpattmS9VmO3ZIQUFn66az8GSmB4IvYhTTCFn6SUmo=";
|
||||||
};
|
};
|
||||||
in ''
|
in
|
||||||
|
''
|
||||||
ln -s ${hexokinase}/bin/hexokinase $target/hexokinase/hexokinase
|
ln -s ${hexokinase}/bin/hexokinase $target/hexokinase/hexokinase
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta.platforms = lib.platforms.all;
|
meta.platforms = lib.platforms.all;
|
||||||
});
|
});
|
||||||
|
|
||||||
vim-clap = super.vim-clap.overrideAttrs(old: {
|
vim-clap = super.vim-clap.overrideAttrs (old: {
|
||||||
preFixup = let
|
preFixup =
|
||||||
|
let
|
||||||
maple-bin = rustPlatform.buildRustPackage {
|
maple-bin = rustPlatform.buildRustPackage {
|
||||||
name = "maple";
|
name = "maple";
|
||||||
src = old.src;
|
src = old.src;
|
||||||
@ -674,14 +733,15 @@ self: super: {
|
|||||||
|
|
||||||
cargoSha256 = "mq5q+cIWXDMeoZfumX1benulrP/AWKZnd8aI0OzY55c=";
|
cargoSha256 = "mq5q+cIWXDMeoZfumX1benulrP/AWKZnd8aI0OzY55c=";
|
||||||
};
|
};
|
||||||
in ''
|
in
|
||||||
|
''
|
||||||
ln -s ${maple-bin}/bin/maple $target/bin/maple
|
ln -s ${maple-bin}/bin/maple $target/bin/maple
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta.platforms = lib.platforms.all;
|
meta.platforms = lib.platforms.all;
|
||||||
});
|
});
|
||||||
|
|
||||||
completion-tabnine = super.completion-tabnine.overrideAttrs(old: {
|
completion-tabnine = super.completion-tabnine.overrideAttrs (old: {
|
||||||
buildInputs = [ tabnine ];
|
buildInputs = [ tabnine ];
|
||||||
|
|
||||||
postFixup = ''
|
postFixup = ''
|
||||||
@ -690,7 +750,7 @@ self: super: {
|
|||||||
'';
|
'';
|
||||||
});
|
});
|
||||||
|
|
||||||
telescope-frecency-nvim = super.telescope-frecency-nvim.overrideAttrs(old: {
|
telescope-frecency-nvim = super.telescope-frecency-nvim.overrideAttrs (old: {
|
||||||
dependencies = [ self.sql-nvim ];
|
dependencies = [ self.sql-nvim ];
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user