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