[Nix-dev] Overriding python with python3 in vim_configurable.customize

Linus Heckemann acc at sphalerite.org
Tue Apr 4 21:42:25 CEST 2017


On 04/04/17 17:40, zimbatm wrote:
> Look into pkgs/top-level/all-packages.nix. I would start by copying the
> definition of vim_configurable from there and set the python argument.
> 
> 
> On Tue, 4 Apr 2017, 14:08 Ben Zhang, <benzhangniu at gmail.com
> <mailto:benzhangniu at gmail.com>> wrote:
> 
>     From the source code, it doesn’t seem to accept a python argument
>     (https://github.com/nicknovitski/nixpkgs/blob/master/pkgs/misc/vim-plugins/vim-utils.nix#L291-L295).
>     Is there another way to override `python` with `python3`
>     (https://github.com/NixOS/nixpkgs/pull/8125#issuecomment-169471686)?
> 


Another potential option would be using package overrides [1] to pass
python3 as python to the vim package — something like

   packageOverrides = pkgs: {
      vim = pkgs.vim.override { python = pkgs.python3 };
   };

[1]: https://nixos.org/nixpkgs/manual/#sec-modify-via-packageOverrides




More information about the nix-dev mailing list