Cleanup after makeing build module

This commit is contained in:
isaacST08 2025-01-23 19:44:59 -07:00
commit 9b524fbe1c
5 changed files with 15 additions and 423 deletions

View file

@ -6,30 +6,7 @@
}: let
inherit (lib.options) mkOption;
inherit (lib.modules) mkIf;
inherit
(lib.types)
bool
enum
ints
listOf
package
str
;
inherit
(builtins)
attrNames
concatLists
concatStringsSep
elem
elemAt
filter
hasAttr
isAttrs
length
map
throw
toString
;
inherit (lib.types) bool listOf package str ;
cfg = config.vim.languages.tex;
@ -81,6 +58,8 @@ in {
vim.languages.tex.build.builder = {
name = "custom";
args = collateArgs cfg.build;
package = cfg.build.builders.custom.package;
executable = cfg.build.builders.custom.executable;
};
};
}

View file

@ -1,35 +1,12 @@
{
config,
pkgs,
lib,
...
}:
let
inherit (lib.options) mkOption mkEnableOption;
inherit
(lib.types)
bool
enum
ints
listOf
package
str
;
inherit
(builtins)
attrNames
concatLists
concatStringsSep
elem
elemAt
filter
hasAttr
isAttrs
length
map
throw
toString
;
inherit (lib.options) mkOption;
inherit (lib.types) enum listOf package str;
inherit (builtins) attrNames;
cfg = config.vim.languages.tex;
in

View file

@ -15,21 +15,7 @@
package
str
;
inherit
(builtins)
attrNames
concatLists
concatStringsSep
elem
elemAt
filter
hasAttr
isAttrs
length
map
throw
toString
;
inherit (builtins) concatLists elem map toString;
cfg = config.vim.languages.tex;
@ -40,7 +26,6 @@
example = !default;
description = description;
});
mkEnableLspOption = mkEnableDefaultOption config.vim.languages.enableLSP;
# --- Arg Collation Functions --
collateArgs = buildConfig: let
@ -226,6 +211,7 @@ in {
name = "tectonic";
args = collateArgs cfg.build;
package = cfg.build.builders.tectonic.package;
executable = cfg.build.builders.tectonic.package;
};
};
}

View file

@ -1,46 +1,12 @@
{
config,
pkgs,
lib,
...
}: let
inherit (lib.options) mkOption;
inherit (lib.modules) mkIf;
inherit
(lib.types)
bool
enum
ints
listOf
package
str
;
inherit
(builtins)
attrNames
concatLists
concatStringsSep
elem
elemAt
filter
hasAttr
isAttrs
length
map
throw
toString
;
inherit (lib.types) bool str;
cfg = config.vim.languages.tex;
# --- Enable Options ---
mkEnableDefaultOption = default: description: (mkOption {
type = bool;
default = default;
example = !default;
description = description;
});
mkEnableLspOption = mkEnableDefaultOption config.vim.languages.enableLSP;
in {
imports = [
./builders