add package.nix for cheatsheet

This commit is contained in:
Youwen Wu 2024-11-10 02:09:11 -08:00
parent f2aea5c16c
commit d1fdc85cc6
Signed by: youwen5
GPG key ID: 865658ED1FE61EC3

View file

@ -0,0 +1,35 @@
{
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;
}
)