nix-community / yarn2nix

Generate nix expressions from a yarn.lock file [maintainer=???]
GNU General Public License v3.0
123 stars 61 forks source link

Support package.json field resolutions #136

Open ghost opened 4 years ago

ghost commented 4 years ago
building '/nix/store/j4pa4dmjd8nplg7cbv2rml006fri5m50-offline.drv'...
building '/nix/store/dl0dr5vvw1c7zbnscfg0y07p25ry8rax-CodiMD-modules-1.6.0.drv'...
configuring
building
yarn config v1.22.4
success Set "yarn-offline-mirror" to "/nix/store/s7b4qbszyxranl0vpnryzxdhl329z9k9-offline".
Done in 0.06s.
yarn install v1.22.4
[1/4] Resolving packages...
warning Lockfile has incorrect entry for "tough-cookie@~2.5.0". Ignoring it.
error Couldn't find any versions for "tough-cookie" that matches "~2.5.0" in our cache (possible versions are ""). This is usually caused by a missing entry in the lockfile, running Yarn without the --offline flag may help fix this issue.
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.

builder for '/nix/store/dl0dr5vvw1c7zbnscfg0y07p25ry8rax-CodiMD-modules-1.6.0.drv' failed with exit code 1
cannot build derivation '/nix/store/47xrfl2xdhg0ayav1d9vn5sxsl8pwha1-codimd.drv': 1 dependencies couldn't be built
error: build of '/nix/store/47xrfl2xdhg0ayav1d9vn5sxsl8pwha1-codimd.drv' failed

package.json contains this:

  "resolutions": {
    "**/tough-cookie": "~2.4.0",
    "**/minimatch": "^3.0.2",
    "**/request": "^2.88.0"
  },