-
Notifications
You must be signed in to change notification settings - Fork 268
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
Rust language can't link with Security framework on darwin #267
Comments
I'll look into it. By the way, you don't need |
Figured out workaround: env.RUSTFLAGS = (builtins.map (a: ''-L ${a}/lib'') [
openssl.dev
]) ++ (lib.optionals stdenv.isDarwin (with darwin.apple_sdk; [
"-L${libiconv}/lib"
"-L framework=${frameworks.Security}/Library/Frameworks"
])); |
Also that's how devshell solves this. |
Hey! Could you make a PR adding this to languages/rust.nix? |
Hey! Sure, as soon as I figure out the most clean API design which lets user customize RUSTFLAGS predefined by the rust language module. |
Can we reopen this? It breaks devenv buidls on darwin, see details at #283 (comment) |
Fixed! |
I see problem with that solution, if |
Is there a way to tell Rust to just prepend those? |
AFAIK Rust will utilise regular |
Ok, it seems more complex, but for whatever reason when I use "plain" Nixpkgs shell instead of Devenv it works perfectly fine. I cannot find the reason why this fails in Devenv so while I really like this idea, I cannot use it right now. |
Could you post the gist to reproduce this issue? |
i see this issue when trying to install foundry https://github.com/rainprotocol/binmaskflag try this, |
Could you open a new issue - this one slipped my attention since it's closed. |
@domenkozar the problem lies with not running the setup-hooks (thanks to my naked shell change 😭 ). Especially problematic is the lack of |
Figured this out via:
|
Describe the bug
When compiling some rust code which requires openssl or other Security-related dependencies compilation fails with
To Reproduce
https://gist.github.com/onsails/d2d33a63d88a5e7d656048bd5fa5a6b9.
Version
0.5
The text was updated successfully, but these errors were encountered: