grace/typst_web_magic

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

Grace Yoderadded template, readme, and minor changes5b6c1ba

main
639 B23 linesraw
1{
2  description = "Small, customizable Typst websites";
3
4  inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
5
6  outputs = { nixpkgs, ... }:
7    let
8      systems = [ "aarch64-darwin" "x86_64-darwin" "aarch64-linux" "x86_64-linux" ];
9      forAllSystems = nixpkgs.lib.genAttrs systems;
10    in {
11      apps = forAllSystems (system:
12        let
13          magic = import ./default.nix { pkgs = nixpkgs.legacyPackages.${system}; };
14          init = {
15            type = "app";
16            program = "${magic.init}/bin/typst-web-init";
17          };
18        in {
19          default = init;
20          inherit init;
21        });
22    };
23}