diff --git a/nix/package.nix b/nix/package.nix index 2c0a1be0d..6c76f9256 100644 --- a/nix/package.nix +++ b/nix/package.nix @@ -11,6 +11,7 @@ ninja, pipewire, pkg-config, + removeReferencesTo, rustPlatform, rustToolchain, source, @@ -85,6 +86,7 @@ stdenv.mkDerivation { cmake ninja pkg-config + removeReferencesTo rustPlatform.bindgenHook rustPlatform.cargoSetupHook rustToolchain @@ -186,6 +188,15 @@ stdenv.mkDerivation { runHook postInstall ''; + # Bun serializes the build interpreter path into the bundled entrypoint's + # inert shebang. Remove its hash before Nix scans output references; this + # runs before Darwin's binary-signing fixup hook. + preFixup = '' + remove-references-to -t ${bun} "$out/bin/omp" + ''; + + disallowedReferences = [ bun ]; + doInstallCheck = true; installCheckPhase = '' runHook preInstallCheck diff --git a/packages/coding-agent/CHANGELOG.md b/packages/coding-agent/CHANGELOG.md index 14334fddd..34dae5a65 100644 --- a/packages/coding-agent/CHANGELOG.md +++ b/packages/coding-agent/CHANGELOG.md @@ -2,6 +2,10 @@ ## [Unreleased] +### Fixed + +- Fixed Nix standalone binaries retaining Bun's build-time package in their runtime closure. + ## [17.3.0] - 2026-08-13 ### Breaking Changes