diff options
| author | Ben Sima <ben@bsima.me> | 2025-11-14 23:03:43 -0500 |
|---|---|---|
| committer | Ben Sima <ben@bsima.me> | 2025-11-14 23:03:43 -0500 |
| commit | 8eb102bf5131f29879006252c62c4b2237a7d231 (patch) | |
| tree | e801eac592b9c58553ae546cd5c83a20f8ce25f4 | |
| parent | 0c4c0dadc71b3300e63b55d56bf86cbb2d89986a (diff) | |
fix(bild): work around Nix patch-shebangs.sh bug
Set dontPatchShebangs=true for per-module link derivation to avoid
unbound variable error in Nix's patch-shebangs.sh script.
The script declares 'local update' but never initializes it, causing
bash set -u to fail. Our ELF binaries don't need shebangs patched
anyway.
Tested: All Haskell targets now build successfully including
Omni/Lint.hs which uses makeWrapper with rundeps.
| -rw-r--r-- | Omni/Bild/Builder.nix | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Omni/Bild/Builder.nix b/Omni/Bild/Builder.nix index 37ff821..e1b0122 100644 --- a/Omni/Bild/Builder.nix +++ b/Omni/Bild/Builder.nix @@ -227,6 +227,7 @@ with bild; let nativeBuildInputs = [makeWrapper]; dontConfigure = true; dontStrip = true; + dontPatchShebangs = true; buildPhase = let pkgFlags = lib.strings.concatMapStringsSep " " (p: "-package ${p}") target.langdeps; copyHiFiles = lib.strings.concatMapStringsSep "\n" (drv: "cp -rL ${drv}/hidir/. . 2>/dev/null || true") (lib.attrsets.attrValues modules); |
