mirror of
https://github.com/nix-community/home-manager
synced 2024-11-26 21:19:45 +01:00
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:
parent
445c0b1482
commit
c18984c452
1 changed files with 8 additions and 1 deletions
|
@ -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 {
|
||||
type = types.attrs;
|
||||
default = {};
|
||||
|
@ -130,7 +137,7 @@ in
|
|||
|
||||
config = mkIf cfg.enable {
|
||||
home.packages = [
|
||||
(pkgs.neovim.override {
|
||||
(pkgs.wrapNeovim cfg.package {
|
||||
inherit (cfg)
|
||||
extraPython3Packages withPython3
|
||||
extraPythonPackages withPython
|
||||
|
|
Loading…
Reference in a new issue