{ inputs = { nixpkgs.url = "https://channels.nixos.org/nixos-unstable/nixexprs.tar.xz"; }; outputs = { self, nixpkgs }: let system = "aarch64-darwin"; pkgs = nixpkgs.legacyPackages.${system}; fonts = with pkgs; [ gyre-fonts ]; in { devShells.${system} = rec { rastertype = pkgs.mkShell { packages = [ pkgs.typst ]; shellHook = '' export TYPST_FONT_PATHS="${pkgs.symlinkJoin { name = "rastertype-fonts"; paths = fonts; }}/share/fonts" export TYPST_IGNORE_SYSTEM_FONTS=true export TYPST_IGNORE_EMBEDDED_FONTS=true export TYPST_FEATURES=html ''; }; default = rastertype; }; }; }