-
Notifications
You must be signed in to change notification settings - Fork 0
feat(shell): add OpenSSL env vars for cargo builds on Linux #630
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鈥檒l 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 |
|---|---|---|
|
|
@@ -35,6 +35,12 @@ | |
| # Set XDG_RUNTIME_DIR on Linux for consistent socket paths (e.g., zellij) | ||
| if [ "$(uname)" = "Linux" ]; then | ||
| export XDG_RUNTIME_DIR="/run/user/$(id -u)" | ||
|
|
||
| # OpenSSL for cargo builds (rust crates like openssl-sys) | ||
| 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" | ||
|
Comment on lines
+39
to
+43
|
||
| fi | ||
|
|
||
| # Go configuration | ||
|
|
||
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.
馃З Analysis chain
馃弫 Script executed:
# First, let's examine the file to see the full context head -n 50 home-manager/programs/bash/default.nixRepository: shunkakinoki/dotfiles
Length of output: 1563
馃弫 Script executed:
# Also check if the file exists and its size wc -l home-manager/programs/bash/default.nixRepository: shunkakinoki/dotfiles
Length of output: 106
馃弫 Script executed:
Repository: shunkakinoki/dotfiles
Length of output: 858
馃弫 Script executed:
# Check the module structure - look at the beginning of the file head -n 10 home-manager/programs/bash/default.nixRepository: shunkakinoki/dotfiles
Length of output: 245
馃弫 Script executed:
Repository: shunkakinoki/dotfiles
Length of output: 68
馃弫 Script executed:
Repository: shunkakinoki/dotfiles
Length of output: 432
馃弫 Script executed:
Repository: shunkakinoki/dotfiles
Length of output: 47
馃弫 Script executed:
# Let's look at the entire file to see if there are any package dependencies cat home-manager/programs/bash/default.nixRepository: shunkakinoki/dotfiles
Length of output: 2302
馃弫 Script executed:
Repository: shunkakinoki/dotfiles
Length of output: 756
Line 40 exceeds the 100-character limit鈥攔efactor the PKG_CONFIG_PATH export.
The OpenSSL environment variable setup is technically sound: Nix string interpolation is correct, bash variable escaping with
''$is proper, and the.dev/.outpackage split follows Nix conventions. The comment adequately documents the purpose. However, line 40 is 108 characters, violating the guideline of keeping lines under 100 characters in Nix files. Split this line for compliance with the style requirements.馃 Prompt for AI Agents