36 lines
575 B
Nix
36 lines
575 B
Nix
|
{
|
||
|
pkgs,
|
||
|
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;
|
||
|
}
|
||
|
)
|