nix-npm-buildpackage
nix-npm-buildpackage copied to clipboard
How to make a shell that has the node modules installed?
Hey!
I'm in the process of trying to build and run/emulate a cordova app on nixos. I wanted to try using nix-npm-buildpackage, because electron
has native dependencies in node_modules
; so it's hard to make it work out.
So I need to somehow have a shell that has the node modules defined by package-lock.json installed, so that I could run the cordova commands in there.
However, I can't figure out a way to do that with nix-npm-buildpackage. (npmlock2nix has a built-in .shell
that builds such a shell, but it fails actually building electron https://github.com/nix-community/npmlock2nix/issues/162)
Do you have any hints as to how I could get a shell with the modules defined in package-lock.json installed using nix-npm-buildpackage?
PS: sorry for sending this issue with an empty contents at first, I misclicked.