Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
base: 58278aec1675
Choose a base ref
...
head repository: NixOS/nixpkgs
compare: 76a08d4a832f
Choose a head ref
  • 2 commits
  • 1 file changed
  • 2 contributors

Commits on Feb 7, 2018

  1. 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 { ... }
    ```
    Ma27 committed Feb 7, 2018
    Copy the full SHA
    8e70725 View commit details
    Browse the repository at this point in the history

Commits on Feb 9, 2018

  1. Merge pull request #34703 from Ma27/make-overriding-vim-configurable-…

    …easier
    
    vim_configurable: enable overrides
    Mic92 committed Feb 9, 2018
    Copy the full SHA
    76a08d4 View commit details
    Browse the repository at this point in the history