3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/editors
Maximilian Bosch f43446c9ca
vim_configurable: restore ability to override python for modules
It seems as Python will be fetched from $PATH in Vim 8.1:

```
stat("/home/ma27/bin/python", 0x7ffe57a317b0) = -1 ENOENT (No such file or directory)
stat("/run/wrappers/bin/python", 0x7ffe57a317b0) = -1 ENOENT (No such file or directory)
stat("/home/ma27/.nix-profile/bin/python", 0x7ffe57a317b0) = -1 ENOENT (No such file or directory)
stat("/nix/var/nix/profiles/default/bin/python", 0x7ffe57a317b0) = -1 ENOENT (No such file or directory)
stat("/run/current-system/sw/bin/python", {st_mode=S_IFREG|0555, st_size=291, ...}) = 0
readlink("/run/current-system/sw/bin/python", "/nix/store/ggjkqbvwnv7dflkmdgmmp"..., 4096) = 72
```

This breaks in cases where you want to use a modified Python derivation
for the VIM plugins you use in `vim_configurable`:

```
let
  vim_configurable' = vim_configurable.override {
    # python with modules for ensime
    python = python.withPackages (ps: with ps; [ sexpdata websocket_client ]);
  };
in
  vim_configurable'.customize {
    # ...
  }
```

With VIM 8.0 this worked perfectly fine, now it's necessary to install
the modified `python` in $PATH to actually use it, otherwise an error
like this arises:

```
[ensime] A dependency is missing, please `pip2 install sexpdata websocket-client` and restart Vim.
Press ENTER or type command to continue
```

However it should be possible to pass the modified Python to the
modules, the easiest workaround is to write a wrapper which prefixes
$PATH to have the Python derivation available.
2018-05-30 09:16:55 +02:00
..
aewan
android-studio androidStudioPackages.{dev,canary}: 3.2.0.13 -> 3.2.0.14 2018-05-18 14:26:09 +02:00
aseprite
atom atom, atom-beta: 1.27.0 -> 1.27.1, 1.24.0-beta3 -> 1.28.0-beta1 2018-05-22 09:40:00 +02:00
bluefish
bonzomatic Added version info, set compatible platforms 2018-04-24 15:32:47 +00:00
brackets
bvi
bviplus
codeblocks codeblocks: 16.01 -> 17.12, fix build 2018-03-09 21:04:51 +01:00
deadpixi-sam deadpixi-sam: 2016-10-08 -> 2017-10-27 2018-01-20 18:20:54 -05:00
dhex
dit dit: init at 0.4 2018-04-11 15:15:07 +02:00
eclipse eclipse-plugin-jdt: 4.7.2 -> 4.7.3a 2018-05-15 18:52:58 +02:00
ed
edbrowse edbrowse: 3.7.2 -> 3.7.3 2018-04-17 05:30:26 -07:00
edit
elvis
emacs tree-wide: autorename gnome packages to use dashes 2018-02-25 17:41:16 +01:00
emacs-modes emacsPackages.emacs-libvterm: Fix build (flipped over libvterm-neovim) 2018-05-16 14:31:43 +08:00
flpsed
focuswriter focuswriter: 1.6.11 -> 1.6.12 2018-04-20 06:25:38 -07:00
fte
geany treewide: remove libintl hacks 2018-03-22 16:50:11 -05:00
ghostwriter ghostwriter: 1.6.1 -> 1.6.2 2018-04-16 07:57:12 +02:00
gobby
hecate
heme
hexcurse hexcurse: fix build with gcc7 2018-03-09 16:18:03 +00:00
hexedit
ht ht: fix gcc7 compilation 2018-03-10 15:54:32 +00:00
jedit
jetbrains jetbrains.webstorm: 2018.1.2 -> 2018.1.3 2018-05-09 13:01:08 +03:00
joe joe: 4.4 -> 4.6 2018-02-21 01:28:51 +02:00
jucipp tree-wide: autorename gnome packages to use dashes 2018-02-25 17:41:16 +01:00
jupp
kakoune Kakoune version updated 2018-03-22 -> 2018-05-21, debug mode disabled 2018-05-21 22:41:00 +03:00
kdevelop5 tree-wide: autorename gnome packages to use dashes 2018-02-25 17:41:16 +01:00
kile
kodestudio treewide: s/xlibs/xorg/g (#36889) 2018-03-13 10:16:03 +00:00
leafpad
leo-editor leo-editor: add local copy of pyqt56 since it was globally removed 2018-02-18 16:32:30 -06:00
lighttable tree-wide: autorename gnome packages to use dashes 2018-02-25 17:41:16 +01:00
manuskript
mg mg: 20170828 -> 20171014 2018-02-27 06:05:35 -08:00
micro micro: 1.3.4 -> 1.4.0 2018-02-23 11:14:27 -06:00
moe moe: supports darwin 2018-04-30 22:44:14 -05:00
monodevelop tree-wide: autorename gnome packages to use dashes 2018-02-25 17:41:16 +01:00
music/tuxguitar
nano nano: 2.9.6 -> 2.9.7 2018-05-15 13:25:31 -05:00
ne
nedit
neovim libvterm-neovim: init at 2017-11-05 2018-05-16 14:02:48 +08:00
netbeans
notepadqq
nvi
nvpy
okteta okteta: Move into own package 2018-04-25 09:35:49 +08:00
rednotebook
rstudio rstudio: 1.1.423 -> 1.1.442 2018-04-17 23:24:49 +02:00
scite
sigil
sublime sublime3: 3170 -> 3176 (#40494) 2018-05-14 17:11:44 +02:00
supertux-editor
tecoc
texmacs treewide: stdenv.lib.platforms.gnu -> ... gnu ++ linux 2018-04-30 18:12:10 -05:00
texmaker texmaker: 4.5 -> 5.0.2 2018-03-11 17:56:26 -07:00
texstudio texstudio: 2.12.6 -> 2.12.8 (#38663) 2018-04-10 20:19:52 +02:00
textadept
texworks
tiled tiled: 1.1.4 -> 1.1.5 2018-04-29 17:09:11 +03:00
tweak
typora typora: 0.9.47 -> 0.9.48 (#40714) 2018-05-18 11:04:13 +02:00
uemacs
vanubi
vbindiff vbindiff: 3.0_beta4 -> 3.0_beta5 2018-01-27 01:19:17 +08:00
vim vim_configurable: restore ability to override python for modules 2018-05-30 09:16:55 +02:00
vis vis: 0.4 -> 0.5 2018-03-25 20:49:15 +02:00
vscode vscode: 1.23.0 -> 1.23.1 2018-05-16 07:34:24 -04:00
wily
wxhexeditor wxhexeditor: 0.22 -> 0.24 (#36832) 2018-03-12 21:43:02 +00:00
yi
zile