News for hackers. Stuff that matters.
Re:Habitat — A new approach to automation by cwp on Tuesday June 14, 2016 @01:24PM (#11903612)
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.

Re:Habitat — A new approach to automation by jjuhl on Tuesday June 14, 2016 @04:07PM (#11904937)
So basically it "does not work"...
Re:Habitat — A new approach to automation by jonaf on Tuesday June 14, 2016 @08:49PM (#11906502)
Well, 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.
Re:Habitat — A new approach to automation by cwp on Wednesday June 15, 2016 @12:09PM (#11910165)
Also, it does work. It's just not completely automatic.