From c18984c452013ff0edb3d67ab0a1a245333dd4ce Mon Sep 17 00:00:00 2001 From: Matthieu Coudron Date: Mon, 4 Feb 2019 14:57:26 +0900 Subject: [PATCH] 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. --- modules/programs/neovim.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/modules/programs/neovim.nix b/modules/programs/neovim.nix index 304a273b6..7f2a9aaa1 100644 --- a/modules/programs/neovim.nix +++ b/modules/programs/neovim.nix @@ -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