4 ms·
The nix solution is npm2nix, which runs npm against a package.json file and generates a nix expression for all the npm modules you need. This mostly works, but
by cwp 10y ago
The nix solution is npm2nix, which runs npm against a package.json file and generates a nix expression for all the npm modules you need.
This mostly works, but occasionally you need to override the generated derivations to add implicit dependencies that npm doesn't capture, or otherwise tweak packages that rely on quirks of npm.
- jjuhl 10y agoSo basically it "does not work"...
- jonaf 10y agoWell, let's be clear, if it doesn't work, you know at compile time, not at runtime. I don't care how broken things are at compile time if I'm guaranteed that everything will work at runtime. That's kind of the whole point of nix. It's not impossible to write code with errors, but you should not be able to build as long as the errors exist.
- cwp 10y agoAlso, it does work. It's just not completely automatic.