summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorJörg Thalheim <Mic92@users.noreply.github.com>2019-01-26 09:20:34 +0000
committerGitHub <noreply@github.com>2019-01-26 09:20:34 +0000
commit544c2271743e609d92493f0d387824b88cff832a (patch)
treee12165448e8eace13ffb8a45716a623cd40f2a38 /pkgs
parent068b35d32f38048012b0fefe7424f8d1c0d20855 (diff)
parentfdf77854b4174c4d1a342ca7ccf9ff065690ca18 (diff)
downloadnixpkgs-544c2271743e609d92493f0d387824b88cff832a.tar
nixpkgs-544c2271743e609d92493f0d387824b88cff832a.tar.gz
nixpkgs-544c2271743e609d92493f0d387824b88cff832a.tar.bz2
nixpkgs-544c2271743e609d92493f0d387824b88cff832a.tar.lz
nixpkgs-544c2271743e609d92493f0d387824b88cff832a.tar.xz
nixpkgs-544c2271743e609d92493f0d387824b88cff832a.tar.zst
nixpkgs-544c2271743e609d92493f0d387824b88cff832a.zip
Merge pull request #54590 from symphorien/sved2
vimPlugins.sved: init
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/misc/vim-plugins/generated.nix10
-rw-r--r--pkgs/misc/vim-plugins/overrides.nix30
-rw-r--r--pkgs/misc/vim-plugins/vim-plugin-names1
3 files changed, 41 insertions, 0 deletions
diff --git a/pkgs/misc/vim-plugins/generated.nix b/pkgs/misc/vim-plugins/generated.nix
index 4feaebf9058..56157d077d0 100644
--- a/pkgs/misc/vim-plugins/generated.nix
+++ b/pkgs/misc/vim-plugins/generated.nix
@@ -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";
diff --git a/pkgs/misc/vim-plugins/overrides.nix b/pkgs/misc/vim-plugins/overrides.nix
index 9a29ba82dae..c9785b66fbb 100644
--- a/pkgs/misc/vim-plugins/overrides.nix
+++ b/pkgs/misc/vim-plugins/overrides.nix
@@ -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 ];
   });
diff --git a/pkgs/misc/vim-plugins/vim-plugin-names b/pkgs/misc/vim-plugins/vim-plugin-names
index 3c39a7eeb4e..101ac0a2112 100644
--- a/pkgs/misc/vim-plugins/vim-plugin-names
+++ b/pkgs/misc/vim-plugins/vim-plugin-names
@@ -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