diff --git a/documents/flake.lock b/documents/flake.lock index 88506eb..f2046c2 100644 --- a/documents/flake.lock +++ b/documents/flake.lock @@ -51,7 +51,8 @@ "flake-parts": "flake-parts", "nixpkgs": "nixpkgs", "typix": "typix", - "typst-packages": "typst-packages" + "typst-packages": "typst-packages", + "zen-typ": "zen-typ" } }, "typix": { @@ -89,6 +90,21 @@ "repo": "packages", "type": "github" } + }, + "zen-typ": { + "locked": { + "lastModified": 1737198395, + "narHash": "sha256-V3runX3cITanGPVF/Sfjak2/FNs6DuAwayQ44Iedal8=", + "owner": "youwen5", + "repo": "zen.typ", + "rev": "3564895682f394f3c9be291332cc19c6ab695a60", + "type": "github" + }, + "original": { + "owner": "youwen5", + "repo": "zen.typ", + "type": "github" + } } }, "root": "root", diff --git a/documents/flake.nix b/documents/flake.nix index e3af851..9f5bd2b 100644 --- a/documents/flake.nix +++ b/documents/flake.nix @@ -16,6 +16,8 @@ flake = false; }; + zen-typ.url = "github:youwen5/zen.typ"; + # Example of downloading icons from a non-flake source # font-awesome = { # url = "github:FortAwesome/Font-Awesome"; @@ -57,8 +59,9 @@ src = typstPackagesSrc; dontBuild = true; installPhase = '' - mkdir -p "$out/typst/packages" + mkdir -p "$out/typst/packages/youwen/zen/0.1.0" cp -LR --reflink=auto --no-preserve=mode -t "$out/typst/packages" "$src"/* + cp -LR --reflink=auto --no-preserve=mode -t "$out/typst/packages/youwen/zen/0.1.0" "${inputs.zen-typ}/typst"/* ''; }; typixLib = typix.lib.${system};