neovim: add finalPackage option as readOnly

This commit is contained in:
Tobias Happ 2019-08-10 13:55:05 +02:00 committed by Robert Helgesson
parent f1146a1fef
commit 5d7eabb93f
No known key found for this signature in database
GPG key ID: 36BDAA14C2797E89

View file

@ -111,6 +111,13 @@ in
description = "The package to use for the neovim binary."; description = "The package to use for the neovim binary.";
}; };
finalPackage = mkOption {
type = types.package;
visible = false;
readOnly = true;
description = "Resulting customized neovim package.";
};
configure = mkOption { configure = mkOption {
type = types.attrs; type = types.attrs;
default = {}; default = {};
@ -136,13 +143,13 @@ in
}; };
config = mkIf cfg.enable { config = mkIf cfg.enable {
home.packages = [ home.packages = [ cfg.finalPackage ];
(pkgs.wrapNeovim cfg.package {
inherit (cfg) programs.neovim.finalPackage = pkgs.wrapNeovim cfg.package {
extraPython3Packages withPython3 inherit (cfg)
extraPythonPackages withPython extraPython3Packages withPython3
withNodeJs withRuby viAlias vimAlias configure; extraPythonPackages withPython
}) withNodeJs withRuby viAlias vimAlias configure;
]; };
}; };
} }