mamot.fr is one of the many independent Mastodon servers you can use to participate in the fediverse.
Mamot.fr est un serveur Mastodon francophone, géré par La Quadrature du Net.

Server stats:

3.5K
active users

Paco Velobs

Hey and people 👋

I was wondering if something like mkYarnPackage already exists for 👀

I'm supposed to demonstrate the power of and on a + project at work.

I got something working with but that's not what they asked for 🤷

@PacoVelobs unfortunately not! Bun's binary lock file makes it so we can't parse it in Nix and fetch dependencies. The best solution I have managed to find is to convert the bun lock file to yarn.lock and then build with that. Sometimes that doesn't work and I needed to then convert the yarn lock file to package-lock.json and use buildNpmPackage. But sometimes that doesn't work and it turns out bun doesn't include hashes for transients if you have any dev dependencies.

@PacoVelobs if you are okay with IFD then you could perform that conversion in Nix, leaving you with only the bun lock file to track in your repo. Still not ideal, but it at least works.

@jakehamilton
Thanks a lot for both the answer and then rational behind it 🙏

@PacoVelobs it is a difficult one! Happy to help :)

Bun has an issue open on their roadmap for replacing the binary lock file with a text one. It has been pushed out once already, but hopefully it will be worked on soon!