neovim: allow to override package

If you want to run a development version for instance, it is easier to
set neovim.package rather than work around the wrapping mechanism etc.
This commit is contained in:
Matthieu Coudron 2019-02-04 14:57:26 +09:00 committed by Robert Helgesson
parent 445c0b1482
commit c18984c452
No known key found for this signature in database
GPG key ID: 36BDAA14C2797E89

View file

@ -104,6 +104,13 @@ in
''; '';
}; };
package = mkOption {
type = types.package;
default = pkgs.neovim-unwrapped;
defaultText = "pkgs.neovim-unwrapped";
description = "The package to use for the neovim binary.";
};
configure = mkOption { configure = mkOption {
type = types.attrs; type = types.attrs;
default = {}; default = {};
@ -130,7 +137,7 @@ in
config = mkIf cfg.enable { config = mkIf cfg.enable {
home.packages = [ home.packages = [
(pkgs.neovim.override { (pkgs.wrapNeovim cfg.package {
inherit (cfg) inherit (cfg)
extraPython3Packages withPython3 extraPython3Packages withPython3
extraPythonPackages withPython extraPythonPackages withPython