Skip to content

bun: build from source - #555390

Draft
9bingyin wants to merge 13 commits into
NixOS:masterfrom
9bingyin:bun-from-source
Draft

9bingyin wants to merge 13 commits into
NixOS:masterfrom
9bingyin:bun-from-source

Conversation

@9bingyin

@9bingyin 9bingyin commented Aug 22, 2026 •

Copy link
Copy Markdown

Bun 1.4 moves much of Bun's implementation from Zig to Rust, and upstream changed the build process at the same time. The existing nixpkgs package installed Bun's release binary, so I used this update to try building Bun from source instead.

The source build lives in bun-unwrapped. It pins the Bun and WebKit revisions, Cargo dependencies, Node modules, and the native source archives used by Bun's build system. An upstream Bun binary is still needed to bootstrap the build, but the final executable is built from source. The bun package wraps bun-unwrapped with the include and library paths needed by bun build --compile on Linux.

This should also address the pkgsMusl.bun failure tracked in #280716. Under pkgsMusl, the package now uses Bun's musl bootstrap and builds the final executable with the musl toolchain instead of trying to adapt a glibc release binary.

This is my first contribution to nixpkgs, so corrections are welcome if I have missed a convention. I use Bun and would be happy to help maintain the package. This PR adds me to its maintainer list.

https://bun.com/blog/bun-v1.4.4

Assisted-by: pi (GPT-5.6 Sol)
Assisted-by: pi (GPT-6.1 Sol)

Things done

@nixpkgs-ci nixpkgs-ci Bot added 10.rebuild-linux: 11-100 This PR causes between 11 and 100 packages to rebuild on Linux. 10.rebuild-darwin: 11-100 This PR causes between 11 and 100 packages to rebuild on Darwin. 12.first-time contribution This PR is the author's first one; please be gentle! llm-assisted Contributions that include code generation with LLMs 8.has: maintainer-list (update) This PR changes `maintainers/maintainer-list.nix` labels Aug 22, 2026
@9bingyin

Copy link
Copy Markdown
Author

nixpkgs-review result

Generated using nixpkgs-review.

Command: nixpkgs-review pr 555390
Commit: 9f26364a7cbb6289512d9b00d899266b04dec2b5


x86_64-linux

❌ 1 package failed to build:
  • kilo
✅ 37 packages built:
  • atuin-desktop
  • beam27Packages.livebook
  • beam28Packages.livebook
  • beam29Packages.livebook
  • beamMinimal27Packages.livebook
  • livebook (beamMinimal28Packages.livebook)
  • beamMinimal29Packages.livebook
  • bun-unwrapped
  • context-mode
  • balatro-mod-manager
  • cyberstrike
  • anytype
  • equibop
  • filen-cli
  • ghui
  • gitlab-ci-local
  • gitlab-duo
  • duplicati
  • goofcord
  • gowebly
  • gleam
  • home-assistant-custom-lovelace-modules.navbar-card
  • hunk
  • iloader
  • jxscout
  • kulala-core
  • kulala-fmt
  • models-dev
  • mystmd
  • opencode
  • opencode-desktop
  • surrealist
  • swagger-typescript-api
  • handy
  • windmill
  • vimPlugins.kulala-nvim
  • convertx

kilo
    "Sureshkumars"
  ]
}
Loaded 18 migrations
Prepared models snapshot from /nix/store/bgl2mxy2m9bh19k3lrmf1pnzgsjpbc23-models-dev-sdk-v0.0.5-unstable-2026-08-13/dist/_api.json (184 providers, 6293 models)
building Kilo Console
$ vite build
/nix/store/byi2zpy2bgcf3dr6y0l8m50rmjj8z7q1-bash-5.3p15/bin/bash: /build/source/packages/kilo-console/node_modules/.bin/vite: /usr/bin/env: bad interpreter: No such file or directory
error: script "build" exited with code 126
88 |     stdout: "inherit",
89 |     stderr: "inherit",
90 |     windowsHide: true,
91 |   })
92 |   const code = await proc.exited
93 |   if (code !== 0) throw new Error(`Kilo Console build failed with exit code ${code}`)
                                 ^
error: Kilo Console build failed with exit code 126
      at buildKiloConsole (/build/source/packages/opencode/script/build.ts:93:29)

Bun v1.4.0 (Linux x64)

@9bingyin

Copy link
Copy Markdown
Author

nixpkgs-review result

Generated using nixpkgs-review.

Command: nixpkgs-review pr 555390 --additional-package bun-unwrapped --additional-package bun
Commit: 9f26364a7cbb6289512d9b00d899266b04dec2b5


aarch64-darwin

❌ 7 packages failed to build:
  • cyberstrike
  • filen-cli
  • gitlab-duo
  • hunk
  • kilo
  • mystmd
  • opencode
✅ 24 packages built:
  • beam27Packages.livebook
  • beamMinimal27Packages.livebook
  • livebook (beamMinimal28Packages.livebook)
  • beamMinimal29Packages.livebook
  • bun
  • bun-unwrapped
  • context-mode
  • duplicati
  • ghui
  • gitlab-ci-local
  • beam29Packages.livebook
  • atuin-desktop
  • gleam
  • iloader
  • gowebly
  • kulala-core
  • jxscout
  • models-dev
  • beam28Packages.livebook
  • opencode-desktop
  • swagger-typescript-api
  • kulala-fmt
  • handy
  • vimPlugins.kulala-nvim

Error logs: `aarch64-darwin`
cyberstrike
    "rekram1-node",
    "thdxr",
    "kommander",
    "jayair",
    "fwang",
    "adamdotdevin",
    "iamdavidhill",
    "cyberstrike-agent[bot]",
    "R44VC0RP"
  ]
}
Generated models-snapshot.ts
Loaded 22 migrations
building cyberstrike-darwin-arm64
11227 | var module = await import(`@opentui/core-${process.platform}-${process.arch}/index.ts`);
                                  ^
error: Could not resolve: "@opentui/core-darwin-arm64/index.ts". Maybe you need to "bun install"?
    at /nix/var/nix/b/73hqirdyjcwiqpbd4gzbizrx5a/source/node_modules/.bun/@[email protected]+8e67d58793ed4a15/node_modules/@opentui/core/index-nkrr8a4c.js:11227:27

Bun v1.4.0 (macOS arm64)

gitlab-duo
packages/webview_duo_chat_classic/node_modules/vite/node_modules/esbuild/node_modules/@esbuild/android-arm/bin/esbuild: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/ns9a9c245s35mxq4arv4pyf3jvb2dh0i-nodejs-22.23.2/bin/node"
packages/webview_duo_chat_classic/node_modules/vite/node_modules/esbuild/node_modules/@esbuild/android-x64/bin/esbuild: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/ns9a9c245s35mxq4arv4pyf3jvb2dh0i-nodejs-22.23.2/bin/node"
packages/webview_theming/node_modules/@gitlab/ui/bin/migrate_custom_utils_to_tw.bundled.mjs: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/ns9a9c245s35mxq4arv4pyf3jvb2dh0i-nodejs-22.23.2/bin/node"
packages/webview_vuln_details/node_modules/vite/bin/vite.js: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/ns9a9c245s35mxq4arv4pyf3jvb2dh0i-nodejs-22.23.2/bin/node"
packages/webview_vuln_details/node_modules/vite/node_modules/rollup/dist/bin/rollup: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/ns9a9c245s35mxq4arv4pyf3jvb2dh0i-nodejs-22.23.2/bin/node"
packages/webview_vuln_details/node_modules/vite/node_modules/esbuild/bin/esbuild: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/ns9a9c245s35mxq4arv4pyf3jvb2dh0i-nodejs-22.23.2/bin/node"
packages/webview_vuln_details/node_modules/vite/node_modules/esbuild/node_modules/@esbuild/android-arm/bin/esbuild: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/ns9a9c245s35mxq4arv4pyf3jvb2dh0i-nodejs-22.23.2/bin/node"
packages/webview_vuln_details/node_modules/vite/node_modules/esbuild/node_modules/@esbuild/android-x64/bin/esbuild: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/ns9a9c245s35mxq4arv4pyf3jvb2dh0i-nodejs-22.23.2/bin/node"
packages/webview_vuln_details/node_modules/@gitlab/ui/bin/migrate_custom_utils_to_tw.bundled.mjs: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/ns9a9c245s35mxq4arv4pyf3jvb2dh0i-nodejs-22.23.2/bin/node"
packages/webview/node_modules/prettier/bin/prettier.cjs: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/ns9a9c245s35mxq4arv4pyf3jvb2dh0i-nodejs-22.23.2/bin/node"
packages/webview/node_modules/vite/bin/vite.js: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/ns9a9c245s35mxq4arv4pyf3jvb2dh0i-nodejs-22.23.2/bin/node"
packages/webview/node_modules/vite/node_modules/rollup/dist/bin/rollup: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/ns9a9c245s35mxq4arv4pyf3jvb2dh0i-nodejs-22.23.2/bin/node"
packages/webview/node_modules/uuid/dist-node/bin/uuid: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/ns9a9c245s35mxq4arv4pyf3jvb2dh0i-nodejs-22.23.2/bin/node"
configurePhase completed in 1 minutes 31 seconds
Running phase: buildPhase
@nix { "action": "setPhase", "phase": "buildPhase" }
 [354ms]  minify  -13.56 MB (estimate)
 [322ms]  bundle  3665 modules
Error writing standalone module graph: OverlappingSegments
failed to write compiled executable packages/cli/bin/duo
hunk
structuredAttrs is enabled
Using versionCheckHook
Running phase: unpackPhase
@nix { "action": "setPhase", "phase": "unpackPhase" }
unpacking source archive /nix/store/naw12w40pwkfr50s8iq6rz9ka9h9f80q-source
source root is source
Running phase: patchPhase
@nix { "action": "setPhase", "phase": "patchPhase" }
Running phase: updateAutotoolsGnuConfigScriptsPhase
@nix { "action": "setPhase", "phase": "updateAutotoolsGnuConfigScriptsPhase" }
Running phase: configurePhase
@nix { "action": "setPhase", "phase": "configurePhase" }
Running phase: buildPhase
@nix { "action": "setPhase", "phase": "buildPhase" }
 [154ms]  bundle  781 modules
Error writing standalone module graph: OverlappingSegments
failed to write compiled executable hunk
kilo
dist/assets/KaTeX_AMS-Regular-DMm9YOAa.woff                  33.52 kB
dist/assets/KaTeX_Main-Italic-3WenGoN9.ttf                   33.58 kB
dist/assets/KaTeX_Main-Bold-waoOVXN0.ttf                     51.34 kB
dist/assets/KaTeX_Main-Regular-ypZvNtVU.ttf                  53.58 kB
dist/assets/KaTeX_AMS-Regular-DRggAlZN.ttf                   63.63 kB
dist/assets/sprite-C8vjp2f0.svg                             357.81 kB │ gzip: 142.36 kB
dist/assets/index-DELi0OA9.css                              363.78 kB │ gzip:  60.77 kB
dist/assets/__vite-browser-external-2447137e-BIHI7g3E.js      0.03 kB │ gzip:   0.05 kB
dist/assets/index-fpu2GCxY.js                             1,526.24 kB │ gzip: 379.07 kB

(!) Some chunks are larger than 500 kB after minification. Consider:

Bun v1.4.0 (macOS arm64)

mystmd
myst-cli-utils:build: $ npm-run-all -l clean -p build:esm
myst-spec:build: $ rimraf index.js dist
myst-migrate:build: [clean] $ rimraf dist
markdown-it-myst:build: [clean] $ rimraf dist
markdown-it-myst:build: [clean] /nix/store/szpwxfkbnw35ayiav64w8vxipsf6viwl-bash-5.3p15/bin/bash: line 1: rimraf: command not found
markdown-it-myst:build: [clean] error: script "clean" exited with code 127
markdown-it-myst:build: ERROR: "clean" exited with 127.
markdown-it-myst:build: error: script "build" exited with code 1
markdown-it-myst:build: ERROR: command finished with error: command (/nix/var/nix/b/1i4w4c8qj4v0ga1fbpgjb21fj8/source/packages/markdown-it-myst) /nix/store/w48qs7c4p1k9xpdpfzd1nx123a3pwffi-bun-1.4.0/bin/bun run build exited (1)
markdown-it-myst#build: command (/nix/var/nix/b/1i4w4c8qj4v0ga1fbpgjb21fj8/source/packages/markdown-it-myst) /nix/store/w48qs7c4p1k9xpdpfzd1nx123a3pwffi-bun-1.4.0/bin/bun run build exited (1)

Tasks: 0 successful, 6 total
Cached: 0 cached, 6 total
Time: 1.878s
Failed: markdown-it-myst#build

...Finishing writing to cache...

> ...Finishing writing to cache...
ERROR run failed: command exited (1)
error: script "build" exited with code 1

opencode
dist/assets/objective-cpp-CLxacb5B.js                       172.02 kB │ gzip:  30.78 kB │ map:    218.56 kB
dist/assets/javascript-wDzz0qaB.js                          174.88 kB │ gzip:  16.64 kB │ map:    236.09 kB
dist/assets/tsx-COt5Ahok.js                                 175.58 kB │ gzip:  16.63 kB │ map:    236.76 kB
dist/assets/jsx-g9-lgVsj.js                                 177.83 kB │ gzip:  16.75 kB │ map:    239.01 kB
dist/assets/typescript-BPQ3VLAy.js                          181.13 kB │ gzip:  16.15 kB │ map:    244.43 kB
dist/assets/angular-ts-DtEQuh-b.js                          183.86 kB │ gzip:  16.73 kB │ map:    249.41 kB
dist/assets/vue-vine-BoDAl6tE.js                            190.10 kB │ gzip:  18.08 kB │ map:    255.17 kB
dist/assets/dialog-select-directory-v2-3LcDceah.js          258.48 kB │ gzip:  74.26 kB │ map:    804.71 kB
dist/assets/wolfram-lXgVvXCa.js                             262.44 kB │ gzip:  77.10 kB │ map:    279.68 kB
dist/assets/wasm-CG6Dc4jp.js                                622.38 kB │ gzip: 231.20 kB │ map:    622.93 kB
dist/assets/cpp-UfJy6YNI.js                                 626.12 kB │ gzip:  44.93 kB │ map:    816.15 kB
dist/assets/emacs-lisp-CXvaQtF9.js                          779.93 kB │ gzip: 196.58 kB │ map:    789.87 kB
dist/assets/ghostty-web-Btj2Apms.js                       1,381.53 kB │ gzip: 426.02 kB │ map:  1,527.16 kB
dist/assets/index-BnMXi9CC.js                             2,739.07 kB │ gzip: 813.47 kB │ map: 11,561.84 kB
✓ built in 19.20s
building opencode-darwin-arm64
Error writing standalone module graph: OverlappingSegments
error: failed to write compiled executable opencode

Bun v1.4.0 (macOS arm64)

@9bingyin

Copy link
Copy Markdown
Author

nixpkgs-review result

Generated using nixpkgs-review.

Command: nixpkgs-review pr 555390 --additional-package bun-unwrapped --additional-package bun
Commit: 4cb470fffd554ea34c6e1d09b59c41864519697b


aarch64-darwin

❌ 3 packages failed to build:
  • cyberstrike
  • kilo
  • mystmd
✅ 28 packages built:
  • atuin-desktop
  • beamMinimal27Packages.livebook
  • livebook (beamMinimal28Packages.livebook)
  • beamMinimal29Packages.livebook
  • bun
  • bun-unwrapped
  • context-mode
  • duplicati
  • filen-cli
  • ghui
  • gitlab-ci-local
  • gitlab-duo
  • gleam
  • gowebly
  • beam27Packages.livebook
  • hunk
  • beam28Packages.livebook
  • iloader
  • kulala-core
  • beam29Packages.livebook
  • models-dev
  • handy
  • opencode
  • opencode-desktop
  • swagger-typescript-api
  • kulala-fmt
  • jxscout
  • vimPlugins.kulala-nvim

Error logs: `aarch64-darwin`
cyberstrike
    "rekram1-node",
    "thdxr",
    "kommander",
    "jayair",
    "fwang",
    "adamdotdevin",
    "iamdavidhill",
    "cyberstrike-agent[bot]",
    "R44VC0RP"
  ]
}
Generated models-snapshot.ts
Loaded 22 migrations
building cyberstrike-darwin-arm64
11227 | var module = await import(`@opentui/core-${process.platform}-${process.arch}/index.ts`);
                                  ^
error: Could not resolve: "@opentui/core-darwin-arm64/index.ts". Maybe you need to "bun install"?
    at /nix/var/nix/b/0miwkl6pc5dhmflr2kwc6r3kdg/source/node_modules/.bun/@[email protected]+8e67d58793ed4a15/node_modules/@opentui/core/index-nkrr8a4c.js:11227:27

Bun v1.4.0 (macOS arm64)

kilo
    "Sureshkumars"
  ]
}
Loaded 18 migrations
Prepared models snapshot from /nix/store/0x46bygby24fp1rrakchff7f2x1m3hj3-models-dev-sdk-v0.0.5-unstable-2026-08-13/dist/_api.json (184 providers, 6293 models)
building Kilo Console
$ vite build
env: node: No such file or directory
error: script "build" exited with code 127
88 |     stdout: "inherit",
89 |     stderr: "inherit",
90 |     windowsHide: true,
91 |   })
92 |   const code = await proc.exited
93 |   if (code !== 0) throw new Error(`Kilo Console build failed with exit code ${code}`)
                                 ^
error: Kilo Console build failed with exit code 127
      at buildKiloConsole (/nix/var/nix/b/6kghg3kn1s7nz36ii44mb3jmxm/source/packages/opencode/script/build.ts:93:29)

Bun v1.4.0 (macOS arm64)

mystmd
myst-roles:build: [clean] error: script "clean" exited with code 127
myst-roles:build: ERROR: "clean" exited with 127.
myst-templates:build: [clean] $ rimraf dist
myst-to-html:build: [clean] $ rimraf dist
myst-to-html:build: [clean] /nix/store/szpwxfkbnw35ayiav64w8vxipsf6viwl-bash-5.3p15/bin/bash: line 1: rimraf: command not found
myst-to-html:build: [clean] error: script "clean" exited with code 127
myst-to-html:build: ERROR: "clean" exited with 127.
myst-roles:build: error: script "build" exited with code 1
myst-to-html:build: error: script "build" exited with code 1
myst-roles:build: ERROR: command finished with error: command (/nix/var/nix/b/510kpkxqcp168jd32mrilvkra5/source/packages/myst-roles) /nix/store/nr3kffl1p9366sdwyj5j6rlp3izqc78g-bun-1.4.0/bin/bun run build exited (1)
myst-roles#build: command (/nix/var/nix/b/510kpkxqcp168jd32mrilvkra5/source/packages/myst-roles) /nix/store/nr3kffl1p9366sdwyj5j6rlp3izqc78g-bun-1.4.0/bin/bun run build exited (1)

Tasks: 10 successful, 20 total
Cached: 0 cached, 20 total
Time: 6.309s
Failed: myst-roles#build

...Finishing writing to cache...

ERROR run failed: command exited (1)
error: script "build" exited with code 1

@9bingyin

Copy link
Copy Markdown
Author

nixpkgs-review result

Generated using nixpkgs-review.

Command: nixpkgs-review pr 555390
Commit: 4cb470fffd554ea34c6e1d09b59c41864519697b


x86_64-linux

❌ 1 package failed to build:
  • kilo
✅ 37 packages built:
  • anytype
  • beam27Packages.livebook
  • beam28Packages.livebook
  • beam29Packages.livebook
  • beamMinimal27Packages.livebook
  • livebook (beamMinimal28Packages.livebook)
  • beamMinimal29Packages.livebook
  • bun-unwrapped
  • context-mode
  • balatro-mod-manager
  • cyberstrike
  • duplicati
  • atuin-desktop
  • filen-cli
  • ghui
  • gitlab-ci-local
  • gitlab-duo
  • gleam
  • equibop
  • gowebly
  • goofcord
  • home-assistant-custom-lovelace-modules.navbar-card
  • hunk
  • iloader
  • jxscout
  • kulala-core
  • kulala-fmt
  • models-dev
  • mystmd
  • opencode
  • opencode-desktop
  • surrealist
  • swagger-typescript-api
  • handy
  • windmill
  • vimPlugins.kulala-nvim
  • convertx

kilo
    "Sureshkumars"
  ]
}
Loaded 18 migrations
Prepared models snapshot from /nix/store/87kkalsfr4wzmsbdhv95ydlrpid6jz21-models-dev-sdk-v0.0.5-unstable-2026-08-13/dist/_api.json (184 providers, 6293 models)
building Kilo Console
$ vite build
/nix/store/byi2zpy2bgcf3dr6y0l8m50rmjj8z7q1-bash-5.3p15/bin/bash: /build/source/packages/kilo-console/node_modules/.bin/vite: /usr/bin/env: bad interpreter: No such file or directory
error: script "build" exited with code 126
88 |     stdout: "inherit",
89 |     stderr: "inherit",
90 |     windowsHide: true,
91 |   })
92 |   const code = await proc.exited
93 |   if (code !== 0) throw new Error(`Kilo Console build failed with exit code ${code}`)
                                 ^
error: Kilo Console build failed with exit code 126
      at buildKiloConsole (/build/source/packages/opencode/script/build.ts:93:29)

Bun v1.4.0 (Linux x64)

@9bingyin
9bingyin marked this pull request as ready for review August 22, 2026 16:55
@9bingyin

Copy link
Copy Markdown
Author

❌ nixpkgs-review result for #555390

Generated using nixpkgs-review-gha (b0ab82d)

Command: nixpkgs-review pr 555390
Commit: 4cb470fffd554ea34c6e1d09b59c41864519697b (subsequent changes)
Merge: 223efd7e9a2512318469293133f7ee3efbab9591

Logs: https://github.com/9bingyin/nixpkgs-review-gha/actions/runs/32594591258/attempts/1


aarch64-linux

❌ 3 packages failed to build:
  • anytype
  • cyberstrike
  • kilo
✅ 35 packages built:
  • atuin-desktop
  • balatro-mod-manager
  • beam27Packages.livebook
  • beam28Packages.livebook
  • beam29Packages.livebook
  • beamMinimal27Packages.livebook
  • livebook (beamMinimal28Packages.livebook)
  • beamMinimal29Packages.livebook
  • bun-unwrapped
  • context-mode
  • convertx
  • duplicati
  • equibop
  • filen-cli
  • ghui
  • gitlab-ci-local
  • gitlab-duo
  • gleam
  • goofcord
  • gowebly
  • handy
  • home-assistant-custom-lovelace-modules.navbar-card
  • hunk
  • iloader
  • jxscout
  • kulala-core
  • kulala-fmt
  • models-dev
  • mystmd
  • opencode
  • opencode-desktop
  • surrealist
  • swagger-typescript-api
  • vimPlugins.kulala-nvim
  • windmill

@nix-julia nix-julia mentioned this pull request Aug 23, 2026
4 of 13 tasks
@nixpkgs-review-gha

Copy link
Copy Markdown

❌ nixpkgs-review result

Generated using nixpkgs-review-gha (9fadbfe)

Command: nixpkgs-review pr 555390
Commit: eaf7276d9eaf6f38a8e8e0270201bc120077778b (subsequent changes)
Merge: de520ec2ace7fbbfc78a90ff1a3de7f19e0a38e2

Triggered by @9bingyin (37502927)
Logs: https://github.com/9bingyin/nixpkgs-review-gha/actions/runs/32662504675/attempts/2


x86_64-linux

❌ 2 packages failed to build:
  • anytype
  • kilo
✅ 36 packages built:
  • atuin-desktop
  • balatro-mod-manager
  • beam27Packages.livebook
  • beam28Packages.livebook
  • beam29Packages.livebook
  • beamMinimal27Packages.livebook
  • livebook (beamMinimal28Packages.livebook)
  • beamMinimal29Packages.livebook
  • bun-unwrapped
  • context-mode
  • convertx
  • cyberstrike
  • duplicati
  • equibop
  • filen-cli
  • ghui
  • gitlab-ci-local
  • gitlab-duo
  • gleam
  • goofcord
  • gowebly
  • handy
  • home-assistant-custom-lovelace-modules.navbar-card
  • hunk
  • iloader
  • jxscout
  • kulala-core
  • kulala-fmt
  • models-dev
  • mystmd
  • opencode
  • opencode-desktop
  • surrealist
  • swagger-typescript-api
  • vimPlugins.kulala-nvim
  • windmill

aarch64-linux

❌ 3 packages failed to build:
  • anytype
  • cyberstrike
  • kilo
✅ 35 packages built:
  • atuin-desktop
  • balatro-mod-manager
  • beam27Packages.livebook
  • beam28Packages.livebook
  • beam29Packages.livebook
  • beamMinimal27Packages.livebook
  • livebook (beamMinimal28Packages.livebook)
  • beamMinimal29Packages.livebook
  • bun-unwrapped
  • context-mode
  • convertx
  • duplicati
  • equibop
  • filen-cli
  • ghui
  • gitlab-ci-local
  • gitlab-duo
  • gleam
  • goofcord
  • gowebly
  • handy
  • home-assistant-custom-lovelace-modules.navbar-card
  • hunk
  • iloader
  • jxscout
  • kulala-core
  • kulala-fmt
  • models-dev
  • mystmd
  • opencode
  • opencode-desktop
  • surrealist
  • swagger-typescript-api
  • vimPlugins.kulala-nvim
  • windmill

aarch64-darwin (sandbox = relaxed)

❌ 2 packages failed to build:
  • cyberstrike
  • kilo
✅ 28 packages built:
  • atuin-desktop
  • beam27Packages.livebook
  • beam28Packages.livebook
  • beam29Packages.livebook
  • beamMinimal27Packages.livebook
  • livebook (beamMinimal28Packages.livebook)
  • beamMinimal29Packages.livebook
  • bun-unwrapped
  • context-mode
  • duplicati
  • filen-cli
  • ghui
  • gitlab-ci-local
  • gitlab-duo
  • gleam
  • gowebly
  • handy
  • hunk
  • iloader
  • jxscout
  • kulala-core
  • kulala-fmt
  • models-dev
  • mystmd
  • opencode
  • opencode-desktop
  • swagger-typescript-api
  • vimPlugins.kulala-nvim

@9bingyin
9bingyin marked this pull request as draft September 6, 2026 13:40
@9bingyin 9bingyin changed the title bun: 1.3.13 -> 1.4.0, build from source bun: 1.3.13 -> 1.4.2, build from source Sep 6, 2026
@9bingyin
9bingyin marked this pull request as ready for review September 6, 2026 18:06
@ShadowRZ

Copy link
Copy Markdown
Member

@9bingyin You can drop package update as #556047 was merged.

@9bingyin 9bingyin changed the title bun: 1.3.13 -> 1.4.2, build from source bun: build from source Sep 13, 2026
@nixpkgs-ci nixpkgs-ci Bot added the 2.status: merge conflict This PR has merge conflicts with the target branch label Sep 13, 2026
@nixpkgs-ci nixpkgs-ci Bot removed the 2.status: merge conflict This PR has merge conflicts with the target branch label Sep 13, 2026
@nixpkgs-review-gha

Copy link
Copy Markdown

❌ nixpkgs-review result

Generated using nixpkgs-review-gha (e31ae99)

Command: nixpkgs-review pr 555390
Commit: 5ee0d33fc325b1af66d81c292816d86f474f3a1f (subsequent changes)
Merge: 3bcc3c636261882f76b62fac21c026ab77006bf1

Triggered by @9bingyin (37502927)
Logs: https://github.com/9bingyin/nixpkgs-review-gha/actions/runs/34776143799/attempts/2


x86_64-linux

✅ 39 packages built:
  • anytype
  • atuin-desktop
  • balatro-mod-manager
  • beam27Packages.livebook
  • beam28Packages.livebook
  • beam29Packages.livebook
  • beamMinimal27Packages.livebook
  • livebook (beamMinimal28Packages.livebook)
  • beamMinimal29Packages.livebook
  • bun-unwrapped
  • context-mode
  • convertx
  • cyberstrike
  • duplicati
  • equibop
  • filen-cli
  • ghui
  • gitlab-ci-local
  • gitlab-duo
  • gleam
  • goofcord
  • gowebly
  • handy
  • home-assistant-custom-lovelace-modules.navbar-card
  • hunk
  • iloader
  • jxscout
  • kulala-core
  • kulala-fmt
  • models-dev
  • mystmd
  • omp
  • opencode
  • opencode-desktop
  • surrealist
  • swagger-typescript-api
  • vimPlugins.kulala-nvim
  • windmill
  • zerobyte

aarch64-linux

✅ 38 packages built:
  • anytype
  • atuin-desktop
  • balatro-mod-manager
  • beam27Packages.livebook
  • beam28Packages.livebook
  • beam29Packages.livebook
  • beamMinimal27Packages.livebook
  • livebook (beamMinimal28Packages.livebook)
  • beamMinimal29Packages.livebook
  • bun-unwrapped
  • context-mode
  • convertx
  • duplicati
  • equibop
  • filen-cli
  • ghui
  • gitlab-ci-local
  • gitlab-duo
  • gleam
  • goofcord
  • gowebly
  • handy
  • home-assistant-custom-lovelace-modules.navbar-card
  • hunk
  • iloader
  • jxscout
  • kulala-core
  • kulala-fmt
  • models-dev
  • mystmd
  • omp
  • opencode
  • opencode-desktop
  • surrealist
  • swagger-typescript-api
  • vimPlugins.kulala-nvim
  • windmill
  • zerobyte

aarch64-darwin (sandbox = true)

❌ 29 packages failed to build:
  • atuin-desktop
  • beam27Packages.livebook
  • beam28Packages.livebook
  • beam29Packages.livebook
  • beamMinimal27Packages.livebook
  • livebook (beamMinimal28Packages.livebook)
  • beamMinimal29Packages.livebook
  • bun-unwrapped
  • context-mode
  • duplicati
  • filen-cli
  • ghui
  • gitlab-ci-local
  • gitlab-duo
  • gleam
  • gowebly
  • handy
  • hunk
  • iloader
  • jxscout
  • kulala-core
  • kulala-fmt
  • models-dev
  • mystmd
  • omp
  • opencode
  • opencode-desktop
  • swagger-typescript-api
  • vimPlugins.kulala-nvim

@neonvoidx neonvoidx mentioned this pull request Sep 15, 2026
4 of 13 tasks
@itpropro

Copy link
Copy Markdown
Contributor

Any progress on this? Bun 1.4.3 is already out and this could really improve the delivery of bun in nixpkgs.

@9bingyin

Copy link
Copy Markdown
Author

Any progress on this? Bun 1.4.3 is already out and this could really improve the delivery of bun in nixpkgs.

I see. I'll follow up once #569018 lands on master

@nixpkgs-ci nixpkgs-ci Bot added the 8.has: package (update) This PR updates a package to a newer version label Oct 17, 2026
@lafrenierejm

Copy link
Copy Markdown
Contributor

@9bingyin What is remaining for this PR to be taken out of draft and marked ready for review? I would be glad to help in any way I can.

@nixpkgs-ci nixpkgs-ci Bot added the 2.status: merge conflict This PR has merge conflicts with the target branch label Nov 3, 2026
@nixpkgs-ci nixpkgs-ci Bot removed the 2.status: merge conflict This PR has merge conflicts with the target branch label Nov 3, 2026
@9bingyin

9bingyin commented Nov 3, 2026

Copy link
Copy Markdown
Author

@9bingyin What is remaining for this PR to be taken out of draft and marked ready for review? I would be glad to help in any way I can.

Because the build process kept changing substantially across the next few minor releases after Bun's migration to Rust, I left this PR in draft for the time being. It might be a good time to pick it back up now, though.

@nixpkgs-ci nixpkgs-ci Bot added the 2.status: merge conflict This PR has merge conflicts with the target branch label Nov 3, 2026
Assisted-by: pi (GPT-5.6 Sol)
- add bun-unwrapped with fixed Bun, WebKit, Cargo and node module sources
- keep bun as a lightweight wrapper for Linux compilation paths
- add an update script and propagate ICU for compiled executables

Assisted-by: pi (GPT-5.6 Sol)
Apply Bun's __DATA_DIRTY segment workaround to native Darwin builds. This
keeps __BUN immediately before __LINKEDIT so standalone module graphs larger
than 16 KiB do not fail with OverlappingSegments.

oven-sh/bun#40107

Assisted-by: pi (GPT-5.6 Sol)
- move source pins to a generated sources.json
- stop modifying Nix expressions with regular expressions
- write updater output atomically
- limit passthru to the supported public attributes
- preserve the existing package description

Assisted-by: pi (GPT-5.6 Sol)
Update pinned sources to 1.4.2. Move compiler and linker flags out of
the patches into NIX_CFLAGS_COMPILE and NIX_LDFLAGS, which removes the
need for fix-darwin-standalone-segment-order.patch. Restore the
upstream jsc target with readline and libedit on Darwin. Regenerate
both patches with git against the pinned source. update.py now runs on
the current platform, and the package follows the default llvmPackages.

Assisted-by: pi (Muse Spark 1.3)
Build Bun's pinned WebKit fork in a private derivation and pass it to Bun
through BUN_WEBKIT_DIR. Reject WebKit store references in the Bun output.

Assisted-by: pi (GPT-5.6 Sol)
Select the bootstrap, node modules, and host compilers for buildPlatform.
Pass Bun the target Linux OS, CPU, and ABI while Nix's compiler wrappers
provide the sysroot.

Update the script to select musl bootstrap assets and note the settings
that follow Bun's build files.

Assisted-by: pi (GPT-5.6 Sol)
Supply standard-library sources and vendor dependencies for Bun's new
Rust build graph. Adapt type reflection for Rust 1.99.

Disable WebKit PCH on Darwin with Clang 21. Disable whole-program vtable
optimization for non-LTO WebKit. Add upstream Rust and offline runtime
tests.

https://bun.com/blog/bun-v1.4.3

Assisted-by: pi (GPT-6.1 Sol)
Use Nix-provided codesign and codesign_allocate instead of the host
/usr/bin/codesign when signing jsc.

Assisted-by: pi (GPT-6.1 Sol)
Set WebKit's macOS deployment target and implement Start's Default for
Rust 1.99.

https://bun.com/blog/bun-v1.4.4

Assisted-by: pi (GPT-6.1 Sol)
@nixpkgs-ci nixpkgs-ci Bot removed the 2.status: merge conflict This PR has merge conflicts with the target branch label Nov 28, 2026
Comment on lines +399 to +402
installShellCompletion --cmd bun \
--bash completions/bun.bash \
--fish completions/bun.fish \
--zsh completions/bun.zsh

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

espflash needs canExecute because it runs $out/bin/espflash to generate completions. In bun-unwrapped, the files under completions/ are static files in the source tree. installShellCompletion copies them and does not run the built binary.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Whoops. You are completely right. Thank you for correcting my misunderstanding!

Assisted-by: Antigravity CLI (Gemini 4 Neon)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

8.has: maintainer-list (update) This PR changes `maintainers/maintainer-list.nix` 8.has: package (update) This PR updates a package to a newer version 10.rebuild-darwin: 11-100 This PR causes between 11 and 100 packages to rebuild on Darwin. 10.rebuild-linux: 11-100 This PR causes between 11 and 100 packages to rebuild on Linux. 12.first-time contribution This PR is the author's first one; please be gentle! llm-assisted Contributions that include code generation with LLMs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants