nixpkgs/pkgs/applications/editors/vim
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
..
cflags-prune.diff vim_configurable: misc improvements 2016-11-07 18:55:21 +01:00
common.nix vim: 8.0.1655 -> 8.1.0001 2018-05-19 00:29:50 -04:00
configurable.nix vim_configurable: restore ability to override python for modules 2018-05-30 09:16:55 +02:00
default.nix vim: fix for cross, add missing configure test override 2018-01-22 12:48:00 -06:00
ft-nix-support.patch vim_configurable: replace default ftNix patch with sources from vim-nix 2018-04-24 22:56:25 +02:00
macvim.nix ruby: remove unsupported versions (#34927) 2018-02-14 09:53:54 +00:00
macvim.patch macvim: 7.4.648 -> 7.4.909 (and fix build) 2015-11-15 02:04:27 -05:00
qvim.nix replace "Mac OS X" and "OS X" with "macOS" 2017-08-07 21:41:30 +02:00