alexandria/2024/documents/by-name/vision-whitepaper/package.nix

36 lines
575 B
Nix
Raw Normal View History

2024-11-20 14:51:30 -08:00
{
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;
}
)