nixpkgs/pkgs
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
..
applications vim_configurable: restore ability to override python for modules 2018-05-30 09:16:55 +02:00
build-support requireFile: Use stdenvNoCC 2018-05-21 19:26:36 -04:00
common-updater
data all-cabal-hashes: update Hackage snapshot to latest version 2018-05-22 10:34:21 +02:00
desktops gnome3.gnome-user-docs: 3.28.1 → 3.28.2 2018-05-19 17:34:10 +02:00
development pythonPackages.docker: 3.2.1 -> 3.3.0 (#40857) 2018-05-22 11:00:37 +02:00
games freeciv: cleanup overrides 2018-05-21 19:55:37 -05:00
misc libretro: build cores on darwin 2018-05-21 19:55:37 -05:00
os-specific wireguard: fix up text, maintainer, and version 2018-05-22 02:58:13 +02:00
servers Merge pull request #40867 from r-ryantm/auto-update/bind 2018-05-21 13:22:52 +02:00
shells dash: 0.5.10.1 -> 0.5.10.2 2018-05-21 09:17:45 +00:00
stdenv androidndk: Fix usage as crossSystem 2018-05-17 17:22:27 +02:00
test
tools youtube-dl: use toPythonApplication (#40831) 2018-05-22 11:01:55 +02:00
top-level youtube-dl: use toPythonApplication (#40831) 2018-05-22 11:01:55 +02:00