feat: add package.nix for math 8 course notes
Some checks are pending
Deploy Quartz site to GitHub Pages using Nix / build (push) Waiting to run
Deploy Quartz site to GitHub Pages using Nix / deploy (push) Blocked by required conditions

This commit is contained in:
Youwen Wu 2025-01-06 15:53:45 -08:00
parent b09e369a76
commit 0fb883e411
Signed by: youwen5
GPG key ID: 865658ED1FE61EC3

View file

@ -0,0 +1,37 @@
{
pkgs,
typstPackagesCache,
typixLib,
cleanTypstSource,
flakeSelf,
...
}:
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;
SOURCE_DATE_EPOCH = builtins.toString flakeSelf.lastModified;
};
in
typixLib.buildTypstProject (
commonArgs
// {
inherit src;
}
)