NixOS / npm2nix

Generate nix expressions to build npm packages
MIT License
57 stars 32 forks source link

Support npm-shrinkwrap.json (hapi-7.5.3) #16

Open nbp opened 9 years ago

nbp commented 9 years ago

The package hapi-7.5.3 has a file named npm-shrinkwrap.json at the top-level, this file seems to pin the dependencies to specific versions, even if they are out-dated.

While building with nix-build, npm install makes multiple request to example.com to fetch different version than the latest, and finally fails at parsing HTML as a valid JSON file.

A temporary work-around consist at removing the file $PWD/npm-shrinkwrap.json at the end of the configurePhase of buildNodePackage expression.

offlinehacker commented 9 years ago

I did a workaround with removing npm-shrinkwrap.json for now. I also added support for overrides in node-packages.nix where you can define your custom patchPhase :)