Announcing bun2nix - Build bun based projects with nix

Hi everyone, recently I have gotten my tool bun2nix into a polished enough state where I’m happy enough to have other people use it.

I built it partially as a learning opportunity to better understand how the various lang2nix tools work, and I think it worked out fairly well and has a nice enough interface although I am open to feedback.

Being written in rust adding it as a postinstall script with bun install is very feasible as even for a medium sized repository (~2k packages) install times were more than reasonable (~50ms), making it ideal for running bun install in something like a shell hook.

10 Likes