Skip to content
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

Can't set DYLD_FALLBACK_LIBRARY_PATH env var while other variables can be set correctly #1523

Open
onsails opened this issue Oct 14, 2024 · 1 comment
Labels
bug Something isn't working macos Affects systems running macOS

Comments

@onsails
Copy link
Contributor

onsails commented Oct 14, 2024

Describe the bug
I'm trying to define DYLD_FALLBACK_LIBRARY_PATH environment variable but it's not being picked up by a devenv shell.

To reproduce

Put into devenv.nix:

env.DYLD_FALLBACK_LIBRARY_PATH = "${pkgs.llvmPackages.libclang.lib}/lib";
env.DYLD = "${pkgs.llvmPackages.libclang.lib}/lib";

in devshell:

❯ env | grep DYLD
LD_DYLD_PATH=/usr/lib/dyld
DYLD=/nix/store/4s2s478cgc19jclm1zg2anjd0kh549nb-clang-16.0.6-lib/lib

as you can see, DYLD_FALLBACK_LIBRARY_PATH is absent

Make sure to include full logs and what you expected to happen.

Version

Paste the output of $ devenv version here or tell us if you're using flakes.

❯ devenv version
devenv 1.3.0 (aarch64-darwin)
@onsails onsails added the bug Something isn't working label Oct 14, 2024
@sandydoo
Copy link
Member

IIRC there's a SIP restriction that prevents this variable from being passed across exec boundaries.

Try exporting it in enterShell.

@sandydoo sandydoo added the macos Affects systems running macOS label Oct 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working macos Affects systems running macOS
Projects
None yet
Development

No branches or pull requests

2 participants