nixpkgs/pkgs/misc/vim-plugins
Maximilian Bosch 8e70725077
vim_configurable: enable overrides
Sometimes it's needed to override parts of `vim_configurable`, for
instance when using ENSIME (http://ensime.github.io/), in this case you
need a Python interpreter and the modules `sexpdata` and
`websocket_client`.

However overriding `vim_configurable` is quite hard as we run
`vimUtils.makeCustomizable` over the default comming from
`configurable.nix`. Therefore it's necessary to copy the code from
`all-packages.nix` and alter the parts you need: https://nixos.org/nix-dev/2017-April/023364.html

In order to simplify overriding `vim_configurable` I added an
`override` and an `overrideAttrs` function to `vimutils.makeCustomizable`
to ensure that the customization capabilities won't be lost after
altering the derivation.

Now it's possible to write expressions like this without evaluation
failures:

```
with pkgs;

let
  vimPy3 = vim_configurable.override {
    python = python3;
  };
in vimPy3.customize { ... }
```
2018-02-07 16:57:40 +01:00
..
patches/vim-grammarous vimPlugins.vim-grammarous: set languagetool path 2017-11-21 17:05:55 +00:00
vim2nix vimPlugins.vim-yapf: fix evaluation 2017-12-09 10:28:40 +00:00
default.nix vim-elixir: 2017-10-20 -> 2018-02-01 2018-02-02 10:57:41 +01:00
vim-plugin-names vim-plugins: Add vim-dirdiff 2018-01-23 10:23:56 -06:00
vim-utils.nix vim_configurable: enable overrides 2018-02-07 16:57:40 +01:00