nix-community / yarn2nix

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

[documentation] private package example? #129

Open kidd opened 4 years ago

kidd commented 4 years ago

I'm quite new to nix. Even I got yarn2nix to work for 100% public dependencies, now an app I'm trying to package depends on a private repo.

A common usecase for private packages is when they still live in the usual registry.nmpjs.org, but you'd need a token to get them.

The usual way is to npm config set //registry.npmjs.org/:_authToken=$MY_TOKEN, but I failed to get that working.

Could someone with more nix-fu add a snippet to solve this (if it's easy enough) in the readme?

Thanks!