From b09e369a7619f897d6fc2af60e2bbca14ebd51a2 Mon Sep 17 00:00:00 2001 From: Youwen Wu Date: Mon, 6 Jan 2025 15:51:19 -0800 Subject: [PATCH] fix: pass the flakeSelf argument to typst packages --- documents/nix/lib/callTypstProject.nix | 2 ++ documents/nix/lib/default.nix | 8 +++++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/documents/nix/lib/callTypstProject.nix b/documents/nix/lib/callTypstProject.nix index 83f5e0a..7b89f3a 100644 --- a/documents/nix/lib/callTypstProject.nix +++ b/documents/nix/lib/callTypstProject.nix @@ -3,6 +3,7 @@ typixLib, typstPackagesCache, cleanTypstSource, + flakeSelf, ... }: package: @@ -12,5 +13,6 @@ package { typixLib typstPackagesCache cleanTypstSource + flakeSelf ; } diff --git a/documents/nix/lib/default.nix b/documents/nix/lib/default.nix index 0724cd3..c4c725d 100644 --- a/documents/nix/lib/default.nix +++ b/documents/nix/lib/default.nix @@ -2,10 +2,16 @@ pkgs, typstPackagesCache, typixLib, + flakeSelf, }: let defaultArgs = { - inherit pkgs typstPackagesCache typixLib; + inherit + pkgs + typstPackagesCache + typixLib + flakeSelf + ; }; in rec {