{ description = "A Typst website"; inputs = { typst-web-magic.url = "git+https://git.gae.moe/grace/typst_web_magic?ref=main"; nixpkgs.follows = "typst-web-magic/nixpkgs"; }; outputs = { self, nixpkgs, typst-web-magic }: let systems = [ "aarch64-darwin" "x86_64-darwin" "aarch64-linux" "x86_64-linux" ]; forAllSystems = nixpkgs.lib.genAttrs systems; in { packages = forAllSystems (system: let pkgs = nixpkgs.legacyPackages.${system}; magic = import typst-web-magic { inherit pkgs; }; in { default = magic.mkSite { src = self; }; }); devShells = forAllSystems (system: { default = self.packages.${system}.default.shell; }); }; }