diff options
| author | Ben Sima <ben@bsima.me> | 2025-11-14 22:28:51 -0500 |
|---|---|---|
| committer | Ben Sima <ben@bsima.me> | 2025-11-14 22:28:51 -0500 |
| commit | 81ec147f894a688c6ff96d33663b39ddbbdf5464 (patch) | |
| tree | 3abb8e372f9fde7cbde345e030aa62a45bf40fd1 /Omni/Bild | |
| parent | d30ae1657f46855a65d0994bf1c61f454356ff9e (diff) | |
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.
Diffstat (limited to 'Omni/Bild')
| -rw-r--r-- | Omni/Bild/Builder.nix | 3 |
1 files changed, 2 insertions, 1 deletions
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 |
