-
Notifications
You must be signed in to change notification settings - Fork 0
fix(shell): add OpenSSL env vars to bash profile and zsh env #632
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -68,6 +68,20 @@ | |||||||||||||||||
| if [ -e '/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh' ]; then | ||||||||||||||||||
| . '/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh' | ||||||||||||||||||
| fi | ||||||||||||||||||
|
|
||||||||||||||||||
| # OpenSSL for cargo builds on Linux (available in login shells) | ||||||||||||||||||
| if [ "$(uname)" = "Linux" ]; then | ||||||||||||||||||
| export XDG_RUNTIME_DIR="/run/user/$(id -u)" | ||||||||||||||||||
| export PKG_CONFIG_PATH="${pkgs.openssl.dev}/lib/pkgconfig''${PKG_CONFIG_PATH:+:$PKG_CONFIG_PATH}" | ||||||||||||||||||
| export OPENSSL_DIR="${pkgs.openssl.dev}" | ||||||||||||||||||
| export OPENSSL_LIB_DIR="${pkgs.openssl.out}/lib" | ||||||||||||||||||
| export OPENSSL_INCLUDE_DIR="${pkgs.openssl.dev}/include" | ||||||||||||||||||
| fi | ||||||||||||||||||
|
Comment on lines
+72
to
+79
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This block defining |
||||||||||||||||||
|
|
||||||||||||||||||
|
Comment on lines
+72
to
+80
|
||||||||||||||||||
| # OpenSSL for cargo builds on Linux (available in login shells) | |
| if [ "$(uname)" = "Linux" ]; then | |
| export XDG_RUNTIME_DIR="/run/user/$(id -u)" | |
| export PKG_CONFIG_PATH="${pkgs.openssl.dev}/lib/pkgconfig''${PKG_CONFIG_PATH:+:$PKG_CONFIG_PATH}" | |
| export OPENSSL_DIR="${pkgs.openssl.dev}" | |
| export OPENSSL_LIB_DIR="${pkgs.openssl.out}/lib" | |
| export OPENSSL_INCLUDE_DIR="${pkgs.openssl.dev}/include" | |
| fi |
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -23,12 +23,21 @@ | |||||
| extended = true; | ||||||
| }; | ||||||
|
|
||||||
| initContent = '' | ||||||
| # envExtra goes to .zshenv (always sourced) | ||||||
|
||||||
| # envExtra goes to .zshenv (always sourced) | |
| # envExtra goes to .zshenv (sourced by all zsh instances, including non-interactive shells) |
Uh oh!
There was an error while loading. Please reload this page.
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.
P2: OpenSSL export block duplicated in profileExtra and bashrcExtra; login shells source .bashrc and run the block twice, duplicating PKG_CONFIG_PATH entries and bloating env
Prompt for AI agents