mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-11-10 15:35:30 +00:00
42 lines
912 B
Nix
42 lines
912 B
Nix
{
|
|
config,
|
|
lib,
|
|
...
|
|
}:
|
|
let
|
|
inherit (lib.options) mkOption;
|
|
inherit (lib.types) enum listOf package str;
|
|
inherit (builtins) attrNames;
|
|
|
|
cfg = config.vim.languages.tex;
|
|
in
|
|
{
|
|
imports = [
|
|
./custom.nix
|
|
./tectonic.nix
|
|
];
|
|
|
|
options.vim.languages.tex.build.builder = {
|
|
name = mkOption {
|
|
type = enum (attrNames cfg.build.builders);
|
|
default = "tectonic";
|
|
description = "The tex builder to use";
|
|
};
|
|
args = mkOption {
|
|
type = listOf str;
|
|
default = [];
|
|
description = "The list of args to pass to the builder";
|
|
};
|
|
package = mkOption {
|
|
type = package;
|
|
default = cfg.build.builders.tectonic.package;
|
|
description = "The tex builder package to use";
|
|
};
|
|
executable = mkOption {
|
|
type = str;
|
|
default = cfg.build.builders.tectonic.executable;
|
|
description = "The tex builder executable to use";
|
|
};
|
|
};
|
|
}
|
|
|