From 58afedf4681f9376434e4dffea168cb077afd966 Mon Sep 17 00:00:00 2001 From: Kristian Krsnik Date: Fri, 9 May 2025 20:10:47 +0200 Subject: [PATCH 1/2] typstPackages: skip unpack phase Some typst packages include a Makefile for unit tests, which break the builds. Since typst packages are just static files no attempt should be made to build them. --- pkgs/build-support/build-typst-package.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/build-support/build-typst-package.nix b/pkgs/build-support/build-typst-package.nix index 47e35251be20..9fb9ddf48674 100644 --- a/pkgs/build-support/build-typst-package.nix +++ b/pkgs/build-support/build-typst-package.nix @@ -40,6 +40,8 @@ lib.extendMkDerivation { { name = "typst-package-${finalAttrs.pname}-${finalAttrs.version}"; + dontUnpack = true; + installPhase = let outDir = "$out/lib/typst-packages/${finalAttrs.pname}/${finalAttrs.version}"; From ce440f99cd33c6a3727e5fec36cdd383b0317342 Mon Sep 17 00:00:00 2001 From: Krsnik Date: Mon, 12 May 2025 12:10:45 +0200 Subject: [PATCH 2/2] typstPackages: skip build phase Co-authored-by: Gongqi Huang <46938348+cherrypiejam@users.noreply.github.com> --- pkgs/build-support/build-typst-package.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/build-support/build-typst-package.nix b/pkgs/build-support/build-typst-package.nix index 9fb9ddf48674..13e1ddd2537c 100644 --- a/pkgs/build-support/build-typst-package.nix +++ b/pkgs/build-support/build-typst-package.nix @@ -40,7 +40,7 @@ lib.extendMkDerivation { { name = "typst-package-${finalAttrs.pname}-${finalAttrs.version}"; - dontUnpack = true; + dontBuild = true; installPhase = let