-
-
Notifications
You must be signed in to change notification settings - Fork 64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding libsecret to cargo to get cargo login
to work
#190
Conversation
3b5d45f
to
1434e6d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it should go mk-component-set.nix
because it's specific about cargo
itself, instead of the integrated toolchain.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Otherwise LGTM. Works for me.
lib/mk-aggregated.nix
Outdated
@@ -1,4 +1,4 @@ | |||
{ lib, stdenv, symlinkJoin, pkgsTargetTarget, bash, curl }: | |||
{ lib, stdenv, symlinkJoin, pkgsTargetTarget, bash, curl, libsecret }: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Forget to remove this?
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 |
Thanks! |
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.