alexandria/2024/documents/by-course/math-4a/selected-solutions/package.nix

35 lines
567 B
Nix
Raw Normal View History

2024-10-24 19:26:36 -07:00
{
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;
}
)