nix-community / npmlock2nix

nixify npm based packages [maintainer=@andir]
Apache License 2.0
130 stars 42 forks source link

Authentication support #160

Closed infinisil closed 5 months ago

infinisil commented 2 years ago

Implement npm registry authentication, allowing access to private registries via .npmrc

This PR also includes the first two commits from #151 since the same changes are needed for authentication support.

Unfortunately the NixOS VM test for authentication created in this PR can't run in GitHub Actions, but it works locally.

TODO:

nixos-discourse commented 2 years ago

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/tweag-nix-dev-update-29/18903/1

elmarsto commented 5 months ago

@infinisil Darn it, this is was a feature I kind of needed. What do you recommend instead of this branch?

infinisil commented 5 months ago

@elmarsto Not using npmlock2nix right now unfortunately. Feel free to use my code though for a new PR or fork