3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs
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
..
applications Merge pull request #34674 from dtzWill/feature/diff-pdf 2018-02-06 19:33:59 +00:00
build-support way-cooler: 0.6.2 -> 0.8.0 2018-02-04 05:17:53 +03:00
common-updater
data Merge remote-tracking branch 'upstream/master' into staging 2018-02-03 02:50:21 +02:00
desktops Merge pull request #34526 from ttuegel/bugfix/plasma-integration/font-style 2018-02-04 17:41:50 -06:00
development Merge pull request #34643 from dotlambda/dateparser 2018-02-06 16:23:58 +00:00
games assaultcube: init at official master branch , rev = "9f537b0876a39d7686e773040469fbb1417de18b" (#34623) 2018-02-05 16:06:49 +01:00
misc vim_configurable: enable overrides 2018-02-07 16:57:40 +01:00
os-specific wireguard: 0.0.20180118 -> 0.0.20180202 2018-02-05 13:09:12 +01:00
servers Merge pull request #34653 from mbrgm/upgrade-unifi 2018-02-06 16:26:07 +00:00
shells elvish: 0.10 -> 0.11 2018-01-31 23:32:49 +01:00
stdenv
test
tools cryfs: 0.9.8 -> 0.9.9 2018-02-07 00:29:04 +08:00
top-level Merge pull request #34674 from dtzWill/feature/diff-pdf 2018-02-06 19:33:59 +00:00