Merge pull request #34703 from Ma27/make-overriding-vim-configurable-easier
vim_configurable: enable overrides
This commit is contained in:
commit
76a08d4a83
@ -325,11 +325,14 @@ rec {
|
|||||||
|
|
||||||
# add a customize option to a vim derivation
|
# add a customize option to a vim derivation
|
||||||
makeCustomizable = vim: vim // {
|
makeCustomizable = vim: vim // {
|
||||||
customize = {name, vimrcConfig}: vimWithRC {
|
customize = { name, vimrcConfig }: vimWithRC {
|
||||||
vimExecutable = "${vim}/bin/vim";
|
vimExecutable = "${vim}/bin/vim";
|
||||||
inherit name;
|
inherit name;
|
||||||
vimrcFile = vimrcFile vimrcConfig;
|
vimrcFile = vimrcFile vimrcConfig;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
override = f: makeCustomizable (vim.override f);
|
||||||
|
overrideAttrs = f: makeCustomizable (vim.overrideAttrs f);
|
||||||
};
|
};
|
||||||
|
|
||||||
pluginnames2Nix = {name, namefiles} : vim_configurable.customize {
|
pluginnames2Nix = {name, namefiles} : vim_configurable.customize {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user