Packaging an app that uses pnpm

I am looking into packaging the backend for Gamevault. This is written in TS, but uses pnpm for dependency management instead of npm. From what I can tell, Nixpkgs does not have any specific functions to support building an app with pnpm. I assume I need to find some way of fetching the pnpm dependencies before building, similar to how node packages are handled.

Does anybody have any suggestions for packaging this app or examples of other pnpm programs that have been packaged?

I did try creating the package-lock.json and building it using npm, but it runs into dependency errors.

Ended up just figuring out the dependency errors. Trying to use pnpm in the build isn’t worth it.

1 Like