oxalica / rust-overlay

Pure and reproducible nix overlay of binary distributed rust toolchains
MIT License
956 stars 56 forks source link

Adding libsecret to cargo to get `cargo login` to work #190

Closed P-E-Meunier closed 1 month ago

P-E-Meunier commented 1 month ago

On Linux, the recommended way to work with cargo login is via libsecret, but that requires a specific LD_LIBRARY_PATH with this overaly.

This PR fixes this by adding libsecret as a runtime dependency of cargo.

Tested on Linux-aarch64.

oxalica commented 1 month ago

Hmm, the cross-compilation is failing because libsecret is somehow not targetPlatform-agnostic. I don't think it's intended and I'll look into it on nixpkgs later when I have time.

But for now, let's explicitly use ${pkgsHostHost.libsecret}. It should workaround the issue.

oxalica commented 1 month ago

Thanks!