mirror of
https://github.com/nix-community/home-manager
synced 2024-12-25 03:09:47 +01:00
neovim: add finalPackage option as readOnly
This commit is contained in:
parent
f1146a1fef
commit
5d7eabb93f
1 changed files with 15 additions and 8 deletions
|
@ -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 {
|
|
||||||
|
programs.neovim.finalPackage = pkgs.wrapNeovim cfg.package {
|
||||||
inherit (cfg)
|
inherit (cfg)
|
||||||
extraPython3Packages withPython3
|
extraPython3Packages withPython3
|
||||||
extraPythonPackages withPython
|
extraPythonPackages withPython
|
||||||
withNodeJs withRuby viAlias vimAlias configure;
|
withNodeJs withRuby viAlias vimAlias configure;
|
||||||
})
|
};
|
||||||
];
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue