grace/typst_web_magic

Typst SSG powering grace.pink and words.gay

git clone https://git.gae.moe/grace/typst_web_magic

Grace Yodermoved to flake stuff13a0eaa

main
750 B26 linesraw
1{
2  description = "A Typst website";
3
4  inputs = {
5    typst-web-magic.url = "git+https://git.gae.moe/grace/typst_web_magic?ref=main";
6    nixpkgs.follows = "typst-web-magic/nixpkgs";
7  };
8
9  outputs = { self, nixpkgs, typst-web-magic }:
10    let
11      systems = [ "aarch64-darwin" "x86_64-darwin" "aarch64-linux" "x86_64-linux" ];
12      forAllSystems = nixpkgs.lib.genAttrs systems;
13    in {
14      packages = forAllSystems (system:
15        let
16          pkgs = nixpkgs.legacyPackages.${system};
17          magic = import typst-web-magic { inherit pkgs; };
18        in {
19          default = magic.mkSite { src = self; };
20        });
21
22      devShells = forAllSystems (system: {
23        default = self.packages.${system}.default.shell;
24      });
25    };
26}