Merge remote-tracking branch 'upstream/master' into wrapper-pname-support

This commit is contained in:
John Ericson
2019-11-24 17:25:07 +00:00
5772 changed files with 168373 additions and 134383 deletions
File diff suppressed because it is too large Load Diff
+17 -19
View File
@@ -49,16 +49,16 @@ self: super: {
};
LanguageClient-neovim = let
version = "0.1.146";
version = "0.1.154";
LanguageClient-neovim-src = fetchurl {
url = "https://github.com/autozimu/LanguageClient-neovim/archive/${version}.tar.gz";
sha256 = "1xm98pyzf2dlh04ijjf3nkh37lyqspbbjddkjny1g06xxb4kfxnk";
sha256 = "03sp643nihj9p2s9cx2dcazhz68s30qx7igqprgsmr1040rhg2py";
};
LanguageClient-neovim-bin = rustPlatform.buildRustPackage {
name = "LanguageClient-neovim-bin";
src = LanguageClient-neovim-src;
cargoSha256 = "0dixvmwq611wg2g3rp1n1gqali46904fnhb90gcpl9a1diqb34sh";
cargoSha256 = "1bvbls2l1xa0s3k11crvd98il4i20z5sn0hqmsc1b915k03qq4zj";
buildInputs = stdenv.lib.optionals stdenv.isDarwin [ CoreServices ];
# FIXME: Use impure version of CoreFoundation because of missing symbols.
@@ -80,17 +80,6 @@ self: super: {
'';
};
# do not auto-update this one, as the name clashes with vim-snippets
vim-docbk-snippets = buildVimPluginFrom2Nix {
pname = "vim-docbk-snippets";
version = "2017-11-02";
src = fetchgit {
url = "https://github.com/jhradilek/vim-snippets";
rev = "69cce66defdf131958f152ea7a7b26c21ca9d009";
sha256 = "1363b2fmv69axrl2hm74dmx51cqd8k7rk116890qllnapzw1zjgc";
};
};
clang_complete = super.clang_complete.overrideAttrs(old: {
# 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++).
@@ -123,14 +112,15 @@ self: super: {
});
# Only official releases contains the required index.js file
# NB: Make sure you pick a rev from the release branch!
coc-nvim = buildVimPluginFrom2Nix rec {
pname = "coc-nvim";
version = "0.0.74";
version = "2019-11-18";
src = fetchFromGitHub {
owner = "neoclide";
repo = "coc.nvim";
rev = "v${version}";
sha256 = "1s4nib2mnhagd0ymx254vf7l1iijwrh2xdqn3bdm4f1jnip81r10";
rev = "a12d6833b4611f996528615186af86c3e041ffb6";
sha256 = "0rkfhzyf42rbsv8p2337pvkbs3crz1z3vv6ar26sadjg3802118z";
};
};
@@ -166,6 +156,10 @@ self: super: {
'';
});
defx-nvim = super.defx-nvim.overrideAttrs(old: {
dependencies = with super; [ nvim-yarp ];
});
deoplete-fish = super.deoplete-fish.overrideAttrs(old: {
dependencies = with super; [ deoplete-nvim vim-fish ];
});
@@ -386,6 +380,10 @@ self: super: {
'';
});
vim-metamath = super.vim-metamath.overrideAttrs(old: {
preInstall = "cd vim";
});
vim-snipmate = super.vim-snipmate.overrideAttrs(old: {
dependencies = with super; [ vim-addon-mw-utils tlib_vim ];
});
@@ -433,8 +431,8 @@ self: super: {
youcompleteme = super.youcompleteme.overrideAttrs(old: {
buildPhase = ''
substituteInPlace plugin/youcompleteme.vim \
--replace "'ycm_python_interpreter_path', '''" \
"'ycm_python_interpreter_path', '${python3}/bin/python'"
--replace "'ycm_path_to_python_interpreter', '''" \
"'ycm_path_to_python_interpreter', '${python3}/bin/python3'"
rm -r third_party/ycmd
ln -s ${ycmd}/lib/ycmd third_party
+64 -21
View File
@@ -8,6 +8,7 @@
# linted:
# $ nix run nixpkgs.python3Packages.flake8 -c flake8 --ignore E501,E265 update.py
import argparse
import functools
import json
import os
@@ -29,6 +30,8 @@ ATOM_LINK = "{http://www.w3.org/2005/Atom}link"
ATOM_UPDATED = "{http://www.w3.org/2005/Atom}updated"
ROOT = Path(__file__).parent
DEFAULT_IN = ROOT.joinpath("vim-plugin-names")
DEFAULT_OUT = ROOT.joinpath("generated.nix")
class Repo:
@@ -154,13 +157,13 @@ def get_current_plugins() -> List[Plugin]:
return plugins
def prefetch_plugin(user: str, repo_name: str, cache: "Cache") -> Plugin:
def prefetch_plugin(user: str, repo_name: str, alias: str, cache: "Cache") -> Plugin:
repo = Repo(user, repo_name)
commit, date = repo.latest_commit()
has_submodules = repo.has_submodules()
cached_plugin = cache[commit]
if cached_plugin is not None:
cached_plugin.name = repo_name
cached_plugin.name = alias or repo_name
cached_plugin.date = date
return cached_plugin
@@ -170,7 +173,7 @@ def prefetch_plugin(user: str, repo_name: str, cache: "Cache") -> Plugin:
else:
sha256 = repo.prefetch_github(commit)
return Plugin(repo_name, commit, has_submodules, sha256, date=date)
return Plugin(alias or repo_name, commit, has_submodules, sha256, date=date)
def print_download_error(plugin: str, ex: Exception):
@@ -207,18 +210,29 @@ def check_results(
sys.exit(1)
def load_plugin_spec() -> List[Tuple[str, str]]:
plugin_file = ROOT.joinpath("vim-plugin-names")
def parse_plugin_line(line: str) -> Tuple[str, str, str]:
try:
name, repo = line.split("/")
try:
repo, alias = repo.split(" as ")
return (name, repo, alias.strip())
except ValueError:
# no alias defined
return (name, repo.strip(), None)
except ValueError:
return (None, None, None)
def load_plugin_spec(plugin_file: str) -> List[Tuple[str, str]]:
plugins = []
with open(plugin_file) as f:
for line in f:
spec = line.strip()
parts = spec.split("/")
if len(parts) != 2:
msg = f"Invalid repository {spec}, must be in the format owner/repo"
plugin = parse_plugin_line(line)
if not plugin[0]:
msg = f"Invalid repository {line}, must be in the format owner/repo[ as alias]"
print(msg, file=sys.stderr)
sys.exit(1)
plugins.append((parts[0], parts[1]))
plugins.append(plugin)
return plugins
@@ -276,12 +290,12 @@ class Cache:
def prefetch(
args: Tuple[str, str], cache: Cache
args: Tuple[str, str, str], cache: Cache
) -> Tuple[str, str, Union[Exception, Plugin]]:
assert len(args) == 2
owner, repo = args
assert len(args) == 3
owner, repo, alias = args
try:
plugin = prefetch_plugin(owner, repo, cache)
plugin = prefetch_plugin(owner, repo, alias, cache)
cache[plugin.commit] = plugin
return (owner, repo, plugin)
except Exception as e:
@@ -293,10 +307,10 @@ header = (
)
def generate_nix(plugins: List[Tuple[str, str, Plugin]]):
def generate_nix(plugins: List[Tuple[str, str, Plugin]], outfile: str):
sorted_plugins = sorted(plugins, key=lambda v: v[2].name.lower())
with open(ROOT.joinpath("generated.nix"), "w+") as f:
with open(outfile, "w+") as f:
f.write(header)
f.write(
"""
@@ -326,15 +340,44 @@ let
}};
"""
)
f.write("""
f.write(
"""
});
in lib.fix' (lib.extends overrides packages)
""")
print("updated generated.nix")
"""
)
print(f"updated {outfile}")
def parse_args():
parser = argparse.ArgumentParser(
description=(
"Updates nix derivations for vim plugins"
f"By default from {DEFAULT_IN} to {DEFAULT_OUT}"
)
)
parser.add_argument(
"--input-names",
"-i",
dest="input_file",
default=DEFAULT_IN,
help="A list of plugins in the form owner/repo",
)
parser.add_argument(
"--out",
"-o",
dest="outfile",
default=DEFAULT_OUT,
help="Filename to save generated nix code",
)
return parser.parse_args()
def main() -> None:
plugin_names = load_plugin_spec()
args = parse_args()
plugin_names = load_plugin_spec(args.input_file)
current_plugins = get_current_plugins()
cache = Cache(current_plugins)
@@ -350,7 +393,7 @@ def main() -> None:
plugins = check_results(results)
generate_nix(plugins)
generate_nix(plugins, args.outfile)
if __name__ == "__main__":
+58 -1
View File
@@ -1,6 +1,8 @@
907th/vim-auto-save
airblade/vim-gitgutter
airblade/vim-rooter
ajh17/Spacegray.vim
aklt/plantuml-syntax
albfan/nerdtree-git-plugin
altercation/vim-colors-solarized
alvan/vim-closetag
@@ -13,6 +15,7 @@ andviro/flake8-vim
ap/vim-css-color
arcticicestudio/nord-vim
artur-shaik/vim-javacomplete2
ayu-theme/ayu-vim
autozimu/LanguageClient-neovim
bazelbuild/vim-bazel
bbchung/clighter8
@@ -21,7 +24,9 @@ bhurlow/vim-parinfer
bitc/vim-hdevtools
bkad/camelcasemotion
bling/vim-bufferline
blueyed/vim-diminactive
bogado/file-line
brennanfee/vim-gui-position
bronson/vim-trailing-whitespace
brooth/far.vim
carlitux/deoplete-ternjs
@@ -40,8 +45,11 @@ chrisgeo/sparkup
chriskempson/base16-vim
christoomey/vim-sort-motion
christoomey/vim-tmux-navigator
ckarnell/antonys-macro-repeater
cloudhead/neovim-fuzzy
CoatiSoftware/vim-sourcetrail
cocopon/iceberg.vim
cohama/lexima.vim
ctjhoa/spacevim
ctrlpvim/ctrlp.vim
dag/vim2hs
@@ -49,7 +57,10 @@ dag/vim-fish
dannyob/quickfixstatus
darfink/starsearch.vim
dart-lang/dart-vim-plugin
david-a-wheeler/vim-metamath
davidhalter/jedi-vim
dcharbon/vim-flatbuffers
deoplete-plugins/deoplete-dictionary
deoplete-plugins/deoplete-jedi
derekelkins/agda-vim
derekwyatt/vim-scala
@@ -58,6 +69,7 @@ digitaltoad/vim-jade
direnv/direnv.vim
dleonard0/pony-vim-syntax
dracula/vim
drewtempelmeyer/palenight.vim
drmingdrmer/xptemplate
dylanaraps/wal.vim
eagletmt/ghcmod-vim
@@ -81,8 +93,12 @@ fenetikm/falcon
fisadev/vim-isort
flazz/vim-colorschemes
floobits/floobits-neovim
freitass/todo.txt-vim
frigoeu/psc-ide-vim
fsharp/vim-fsharp
garbas/vim-snipmate
gentoo/gentoo-syntax
gibiansky/vim-textobj-haskell
glts/vim-textobj-comment
gmarik/vundle
godlygeek/csapprox
@@ -90,17 +106,24 @@ godlygeek/tabular
google/vim-codefmt
google/vim-jsonnet
google/vim-maktaba
gotcha/vimelette
gregsexton/gitv
guns/vim-clojure-highlight
guns/vim-clojure-static
guns/vim-sexp
guns/xterm-color-table.vim
hashivim/vim-terraform
haya14busa/incsearch-easymotion.vim
haya14busa/incsearch.vim
haya14busa/vim-asterisk
heavenshell/vim-jsdoc
hecal3/vim-leader-guide
henrik/vim-indexed-search
HerringtonDarkholme/yats.vim
honza/vim-snippets
hotwatermorning/auto-git-diff
hsanson/vim-android
hsitz/VimOrganizer
ianks/vim-tsx
icymind/NeoSolarized
idris-hackers/idris-vim
@@ -123,6 +146,7 @@ jeffkreeftmeijer/neovim-sensible
jelera/vim-javascript-syntax
jgdavey/tslime.vim
jhradilek/vim-docbk
jhradilek/vim-snippets as vim-docbk-snippets
jiangmiao/auto-pairs
jistr/vim-nerdtree-tabs
jlanzarotta/bufexplorer
@@ -134,10 +158,13 @@ josa42/coc-go
jpalardy/vim-slime
JuliaEditorSupport/deoplete-julia
JuliaEditorSupport/julia-vim
Julian/vim-textobj-variable-segment
junegunn/fzf.vim
junegunn/goyo.vim
junegunn/gv.vim
junegunn/limelight.vim
junegunn/seoul256.vim
junegunn/vader.vim
junegunn/vim-easy-align
junegunn/vim-github-dashboard
junegunn/vim-peekaboo
@@ -163,6 +190,7 @@ konfekt/fastfold
kristijanhusak/vim-hybrid-material
kshenoy/vim-signature
lambdalisue/vim-gista
lambdalisue/vim-manpager
lambdalisue/vim-pager
latex-box-team/latex-box
leafgarland/typescript-vim
@@ -171,6 +199,8 @@ ledger/vim-ledger
lepture/vim-jinja
lervag/vimtex
lfilho/cosco.vim
lifepillar/vim-mucomplete
lilydjwg/colorizer
LnL7/vim-nix
LucHermitte/lh-brackets
LucHermitte/lh-vim-lib
@@ -181,6 +211,7 @@ lumiliet/vim-twig
luochen1990/rainbow
lyokha/vim-xkbswitch
machakann/vim-highlightedyank
machakann/vim-swap
majutsushi/tagbar
maksimr/vim-jsbeautify
MarcWeber/vim-addon-actions
@@ -202,13 +233,14 @@ MarcWeber/vim-addon-sql
MarcWeber/vim-addon-syntax-checker
MarcWeber/vim-addon-toggle-buffer
MarcWeber/vim-addon-xdebug
MaxMEllon/vim-jsx-pretty
markonm/traces.vim
martinda/Jenkinsfile-vim-syntax
mattn/calendar-vim as mattn-calendar-vim
mattn/emmet-vim
mattn/gist-vim
mattn/webapi-vim
maximbaz/lightline-ale
MaxMEllon/vim-jsx-pretty
mbbill/undotree
megaannum/forms
megaannum/self
@@ -221,6 +253,7 @@ mhinz/vim-signify
mhinz/vim-startify
michaeljsmith/vim-indent-object
mileszs/ack.vim
milkypostman/vim-togglelist
mindriot101/vim-yapf
mk12/vim-lean
mkasa/lushtags
@@ -233,6 +266,7 @@ nathanaelkane/vim-indent-guides
nathangrigg/vim-beancount
navicore/vissort.vim
nbouscal/vim-stylish-haskell
ncm2/float-preview.nvim
ncm2/ncm2
ncm2/ncm2-bufword
ncm2/ncm2-jedi
@@ -277,9 +311,11 @@ neovimhaskell/haskell-vim
neovimhaskell/nvim-hs.vim
neovim/nvimdev.nvim
neutaaaaan/iosvkem
nfnty/vim-nftables
nixprime/cpsm
NLKNguyen/papercolor-theme
noc7c9/vim-iced-coffee-script
norcalli/nvim-terminal.lua
ntpeters/vim-better-whitespace
numirias/semshi
nvie/vim-flake8
@@ -301,6 +337,7 @@ posva/vim-vue
powerman/vim-plugin-AnsiEsc
PProvost/vim-ps1
python-mode/python-mode
qnighy/lalrpop.vim
qpkorr/vim-bufkill
Quramy/tsuquyomi
racer-rust/vim-racer
@@ -320,6 +357,7 @@ rodjek/vim-puppet
roxma/nvim-cm-racer
roxma/nvim-completion-manager
roxma/nvim-yarp
RRethy/vim-illuminate
rust-lang/rust.vim
ryanoasis/vim-devicons
Rykka/riv.vim
@@ -332,6 +370,7 @@ scrooloose/syntastic
sebastianmarkow/deoplete-rust
sheerun/vim-polyglot
Shougo/context_filetype.vim
Shougo/defx.nvim
Shougo/denite.nvim
Shougo/deol.nvim
Shougo/deoplete-lsp
@@ -347,9 +386,11 @@ Shougo/neosnippet.vim
Shougo/neoyank.vim
Shougo/tabpagebuffer.vim
Shougo/unite.vim
Shougo/vimfiler.vim
Shougo/vimproc.vim
Shougo/vimshell.vim
shumphrey/fugitive-gitlab.vim
sickill/vim-pasta
SirVer/ultisnips
sjl/gundo.vim
sjl/splice.vim
@@ -357,9 +398,11 @@ sk1418/last256
slashmili/alchemist.vim
sonph/onehalf
stefandtw/quickfix-reflector.vim
stephpy/vim-yaml
t9md/vim-choosewin
t9md/vim-smalls
takac/vim-hardtime
tbodt/deoplete-tabnine
ternjs/tern_for_vim
terryma/vim-expand-region
terryma/vim-multiple-cursors
@@ -370,12 +413,16 @@ thinca/vim-quickrun
thinca/vim-scouter
thinca/vim-themis
thinca/vim-visualstar
thirtythreeforty/lessspace.vim
thosakwe/vim-flutter
tikhomirov/vim-glsl
tmux-plugins/vim-tmux
tmux-plugins/vim-tmux-focus-events
tomasr/molokai
tomlion/vim-solidity
tommcdo/vim-exchange
tommcdo/vim-lion
tommcdo/vim-ninja-feet
tomtom/tcomment_vim
tomtom/tlib_vim
tpope/vim-abolish
@@ -392,8 +439,10 @@ tpope/vim-projectionist
tpope/vim-repeat
tpope/vim-rhubarb
tpope/vim-rsi
tpope/vim-salve
tpope/vim-scriptease
tpope/vim-sensible
tpope/vim-sexp-mappings-for-regular-people
tpope/vim-sleuth
tpope/vim-speeddating
tpope/vim-surround
@@ -401,12 +450,16 @@ tpope/vim-tbone
tpope/vim-unimpaired
tpope/vim-vinegar
travitch/hasksyn
triglav/vim-visual-increment
troydm/zoomwintab.vim
twerth/ir_black
twinside/vim-haskellconceal
Twinside/vim-hoogle
tyru/caw.vim
tyru/open-browser-github.vim
tyru/open-browser.vim
uarun/vim-protobuf
udalov/kotlin-vim
ujihisa/neco-look
valloric/youcompleteme
vhda/verilog_systemverilog.vim
@@ -432,11 +485,14 @@ vim-scripts/jdaddy.vim
vim-scripts/matchit.zip
vim-scripts/mayansmoke
vim-scripts/PreserveNoEOL
vim-scripts/prev_indent
vim-scripts/random.vim
vim-scripts/Rename
vim-scripts/ReplaceWithRegister
vim-scripts/ShowMultiBase
vim-scripts/tabmerge
vim-scripts/taglist.vim
vim-scripts/utl.vim
vim-scripts/wombat256.vim
vim-scripts/YankRing.vim
vim-utils/vim-husk
@@ -451,6 +507,7 @@ wellle/tmux-complete.vim
will133/vim-dirdiff
wincent/command-t
wincent/ferret
wsdjeg/vim-fetch
xolox/vim-easytags
xolox/vim-misc
xuhdev/vim-latex-live-preview