nix-community / crate2nix

rebuild only changed crates in CI with crate2nix and nix
https://nix-community.github.io/crate2nix/
Apache License 2.0
354 stars 83 forks source link

Private crates registry #208

Open LukeMathWalker opened 3 years ago

LukeMathWalker commented 3 years ago

Hey! I am starting to play around with nix to build Rust projects and I am experimenting on a crate that pulls in some dependencies from a private crate registry. This leads to a failure when doing nix flake check - error: unknown source type: registry+https://dl.cloudsmith.io/XXX/XXX.

Are private crate registries supported? If so, where can I find some documentation on how to fix my setup?

Edited: I am using crate2nix via nix-cargo-integration and I didn't realise the default build platform was naersk. I switched to crate2nix and it still fails on private dependencies, although with a different error.