diff options
| author | Maxwell Beck <max@rastertail.net> | 2026-07-13 08:22:05 -0500 |
|---|---|---|
| committer | Maxwell Beck <max@rastertail.net> | 2026-07-13 08:22:05 -0500 |
| commit | 1363e204b50d7901ba23b35f87aaae63c8c4deec (patch) | |
| tree | 08f89cda0a2eb1a94874a73f26b84f061b8ff695 /flake.nix | |
init
Diffstat (limited to 'flake.nix')
| -rw-r--r-- | flake.nix | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..b4c5334 --- /dev/null +++ b/flake.nix @@ -0,0 +1,25 @@ +{ + 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; + }; + }; +} |
