fix(nix): remove build-time Bun closure reference

This commit is contained in:
Bin Jin
2026-08-13 16:38:23 +08:00
parent 326d24bd40
commit 5de3db146a
2 changed files with 15 additions and 0 deletions
+11
View File
@@ -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
+4
View File
@@ -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