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: 6bced693052c
Choose a base ref
...
head repository: NixOS/nixpkgs
compare: 3010d99648aa
Choose a head ref
  • 2 commits
  • 1 file changed
  • 2 contributors

Commits on May 30, 2018

  1. 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.
    Ma27 committed May 30, 2018
    Configuration menu
    Copy the full SHA
    f43446c View commit details
    Browse the repository at this point in the history
  2. Merge pull request #40920 from Ma27/vim-configurable-python-override

    vim_configurable: restore ability to override python for modules
    LnL7 committed May 30, 2018
    Configuration menu
    Copy the full SHA
    3010d99 View commit details
    Browse the repository at this point in the history