35 lines
567 B
Nix
35 lines
567 B
Nix
|
{
|
||
|
typstPackagesCache,
|
||
|
typixLib,
|
||
|
cleanTypstSource,
|
||
|
...
|
||
|
}:
|
||
|
let
|
||
|
src = cleanTypstSource ./.;
|
||
|
commonArgs = {
|
||
|
typstSource = "main.typ";
|
||
|
|
||
|
fontPaths = [
|
||
|
# Add paths to fonts here
|
||
|
# "${pkgs.roboto}/share/fonts/truetype"
|
||
|
];
|
||
|
|
||
|
virtualPaths = [
|
||
|
# Add paths that must be locally accessible to typst here
|
||
|
# {
|
||
|
# dest = "icons";
|
||
|
# src = "${inputs.font-awesome}/svgs/regular";
|
||
|
# }
|
||
|
];
|
||
|
|
||
|
XDG_CACHE_HOME = typstPackagesCache;
|
||
|
};
|
||
|
|
||
|
in
|
||
|
typixLib.buildTypstProject (
|
||
|
commonArgs
|
||
|
// {
|
||
|
inherit src;
|
||
|
}
|
||
|
)
|