mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-09-06 02:11:33 +00:00
dev: custom type for extraPlugin module
This commit is contained in:
parent
eaab87d151
commit
2319ee082c
3 changed files with 25 additions and 1 deletions
|
@ -4,6 +4,6 @@
|
|||
typesLanguage = import ./languages.nix {inherit lib;};
|
||||
in {
|
||||
inherit (typesDag) dagOf;
|
||||
inherit (typesPlugin) pluginsOpt;
|
||||
inherit (typesPlugin) pluginsOpt extraPluginType;
|
||||
inherit (typesLanguage) diagnostics mkGrammarOption;
|
||||
}
|
||||
|
|
|
@ -97,7 +97,26 @@ with lib; let
|
|||
package
|
||||
)
|
||||
);
|
||||
|
||||
extraPluginType = with types;
|
||||
submodule {
|
||||
options = {
|
||||
package = mkOption {
|
||||
type = pluginsType;
|
||||
};
|
||||
dependencies = mkOption {
|
||||
type = listOf str;
|
||||
default = [];
|
||||
};
|
||||
setup = mkOption {
|
||||
type = lines;
|
||||
default = "";
|
||||
};
|
||||
};
|
||||
};
|
||||
in {
|
||||
inherit extraPluginType;
|
||||
|
||||
pluginsOpt = {
|
||||
description,
|
||||
default ? [],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue