Will Flakes enable using repos like cargo and npm?

I saw the RFC for Flakes but didn’t yet wade through it. As I understand it, it allows composing NixPkgs from multiple sources.

I wonder if this will also allow some translation layer that can consume the huge package repositories that most programming languages have and converting them on-the-fly to Nix?


I have the same question :thinking:

Some packages on npm, crates.io, PyPI, etc. require certain libraries outside their own ecosystem, that are not explicitly declared, say libc. Those packages are often found at the root of the dependency tree, so this will affect a lot of the packages, even if it is a minority of packages. So some manual maintenance effort is definitely still required to make this work.