1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-12-24 10:49:48 +01:00

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.";
};
finalPackage = mkOption {
type = types.package;
visible = false;
readOnly = true;
description = "Resulting customized neovim package.";
};
configure = mkOption {
type = types.attrs;
default = {};
@ -136,13 +143,13 @@ in
};
config = mkIf cfg.enable {
home.packages = [
(pkgs.wrapNeovim cfg.package {
inherit (cfg)
extraPython3Packages withPython3
extraPythonPackages withPython
withNodeJs withRuby viAlias vimAlias configure;
})
];
home.packages = [ cfg.finalPackage ];
programs.neovim.finalPackage = pkgs.wrapNeovim cfg.package {
inherit (cfg)
extraPython3Packages withPython3
extraPythonPackages withPython
withNodeJs withRuby viAlias vimAlias configure;
};
};
}