nixpkgs-suyu/pkgs/applications
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
..
altcoins particl-core: 0.16.0.4 -> 0.16.0.5 2018-05-10 10:37:13 +02:00
audio musescore: 2.1.0 -> 2.2.1 2018-05-21 15:45:37 +08:00
backup treewide: remove placeholder usage 2018-03-27 20:14:44 +02:00
display-managers treewide: move "extensions" drvs to dir 2018-04-17 13:50:49 -05:00
editors vim_configurable: restore ability to override python for modules 2018-05-30 09:16:55 +02:00
gis grass: compile with libLAS 2018-04-17 09:29:02 +01:00
graphics krita: 4.0.2 -> 4.0.3 2018-05-21 09:01:06 +00:00
inferno
kde kdeApplications.konquest: init at 2.4 2018-05-18 13:51:42 +01:00
misc chirp: 20180512 -> 20180519 2018-05-21 09:19:56 +00:00
networking purple-xmpp-http-upload: use date of commit as version 2018-05-22 08:14:19 +01:00
office trytond: 4.6 -> 4.8 2018-05-18 17:17:44 +00:00
science pari: 2.9.4 -> 2.9.5 2018-05-21 08:53:00 +00:00
search grepcidr: init at 2.0 (#38685) 2018-04-20 15:40:28 +02:00
version-management gitAndTools.git-dit: Fix darwin build 2018-05-20 04:09:04 +02:00
video shotcut: 18.03.06 -> 18.05.08 (#40887) 2018-05-22 00:10:32 +02:00
virtualization virtmanager: add missing virt-install runtime deps (#40380) 2018-05-13 19:58:10 +02:00
window-managers btops: init at 0.1.0 2018-05-16 16:05:49 +09:00