Non-crates.io dependencies in cargo projects

When I’m using rustPlatform.buildRustPackage, what should i do if some dependencies are from github or other non-crates.io-hostnames?

I was trying to package popsicle, but the project has two dependencies pulled from github, and it creates an error that it cannot resolve hostname github.com.

Have you tried naersk?

naersk would be a possible solution, but it doesn’t fit in nixpkgs super well, maybe i can just keep it in my own repository

naersk doesn’t work yet eather
https://github.com/nmattia/naersk/issues/162