From 8eb102bf5131f29879006252c62c4b2237a7d231 Mon Sep 17 00:00:00 2001 From: Ben Sima Date: Fri, 14 Nov 2025 23:03:43 -0500 Subject: 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. --- Omni/Bild/Builder.nix | 1 + 1 file changed, 1 insertion(+) (limited to 'Omni') 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); -- cgit v1.2.3