harbor-js

Reusable JavaScript and Bun infrastructure for Nix flakes.

The first maintained surface wraps bun-overlay. Node, pnpm, Yarn, and generic JS helpers can join later under lib.bun without a rename.

mkBunPackage

Keeps the upstream Bun binary unpatched on Linux and runs it through proot so `bun build --compile` works in Nix sandboxes.

Toolchain

`mkBunToolchain`, `mkBunDevShell`, `mkBunWorkspaceDeps`, and `readPackageManagerVersion`.

FHS runner

`bun.passthru.fhsRunner` runs Bun-compiled Linux executables in checks or install hooks.

Pinned Bun

`packages.<system>.bun_1_3_14` plus an x86_64-linux baseline build.

Add it

Start from the template or import `lib.bun` directly.

Open full install guide