Bun3nix – bun.lock to nix, with TailwindCSS plugins support

Hi everyone, I made yet another bun.lock to nix generator called bun3nix.

I wanted to use bun2nix, but it currently doesn’t support github dependencies and the issue has been stalling.

I also didn’t want to add another flake input just to import the generated nix file. The nix file generated by bun3nix can be imported directly as a derivation.

bun3nix also supports a mode for generating a nix file without needing bun.lock, just specify the dependencies on the CLI flags.

To check compatibility with Tailwind CSS and its plugins, I added a specific test case for that. If you use Tailwind CSS in Nix, this might help with plugin support.

Feedback or suggestions are welcome.

6 Likes