From 81ec147f894a688c6ff96d33663b39ddbbdf5464 Mon Sep 17 00:00:00 2001 From: Ben Sima Date: Fri, 14 Nov 2025 22:28:51 -0500 Subject: Fix module builder: call unpackPhase explicitly and cd to source When using custom builder, standard phases don't run automatically. Call unpackPhase explicitly and cd to 'source' directory where files are unpacked. Fixes 'sourceRoot: unbound variable' error in module compilation. --- Omni/Bild/Builder.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Omni/Bild/Builder.nix') diff --git a/Omni/Bild/Builder.nix b/Omni/Bild/Builder.nix index 3328b7d..455efce 100644 --- a/Omni/Bild/Builder.nix +++ b/Omni/Bild/Builder.nix @@ -198,7 +198,8 @@ with bild; let depDrvs; in '' set -eu - cd $sourceRoot + unpackPhase + cd source mkdir -p hidir odir ${copyDeps} chmod -R +w hidir || true -- cgit v1.2.3