| I have been hitting my head against the current state of mirrors-support in nixpkgs around Node.
- fetchPnpmDeps: supports
NIX_NPM_REGISTRY as an impure env var
- importNpmLock: no mirror support (needed in fetchurl)
- fetchYarnDeps: no mirror support
- fetchNpmDeps/prefetchNpmDeps: supports
config.npmRegistryOverridesString (and npmRegistryOverrides by extension)
I was trying to get all of these under the same roof in https://github.com/NixOS/nixpkgs/pull/504349 using the fetchurl NIX_MIRRORS_<name> feature as a common baseline, but I am not sure if this is the best way forward.
For completion's sake we should probably also add support for registry.yarnpkg.org and npm.jsr.io, but I think this is all very convoluted sadly :/
|