Merge pull request #54590 from symphorien/sved2

vimPlugins.sved: init
This commit is contained in:
Jörg Thalheim 2019-01-26 09:20:34 +00:00 committed by GitHub
commit 544c227174
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 41 additions and 0 deletions

View file

@ -1618,6 +1618,16 @@ let
};
};
sved = buildVimPluginFrom2Nix {
name = "sved-2019-01-25";
src = fetchFromGitHub {
owner = "peder2tm";
repo = "sved";
rev = "3362db72447e8ac812c7299c15ecfc9f41341713";
sha256 = "1r2nv069d6r2q6gbiz795x94mfjm9hnv05zka085hhq9a3yf1pgx";
};
};
swift-vim = buildVimPluginFrom2Nix {
pname = "swift-vim";
version = "2018-09-12";

View file

@ -4,6 +4,7 @@
, xkb-switch, fzf, skim
, python3, boost, icu, ncurses
, ycmd, rake
, gobject-introspection, glib, wrapGAppsHook
, substituteAll
, languagetool
, Cocoa, CoreFoundation, CoreServices
@ -172,6 +173,35 @@ self: super: {
dependencies = with super; [ ultisnips ];
});
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";
};
});
vimshell-vim = super.vimshell-vim.overrideAttrs(old: {
dependencies = with super; [ vimproc-vim ];
});

View file

@ -222,6 +222,7 @@ osyo-manga/vim-watchdogs
pangloss/vim-javascript
parsonsmatt/intero-neovim
pearofducks/ansible-vim
peder2tm/sved
peterhoeg/vim-qml
phanviet/vim-monokai-pro
plasticboy/vim-markdown