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

nix: Alias the openssl3 binary #4252

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@
shellHook = ''
echo Setting up $S2N_LIBCRYPTO environment from flake.nix...
export PATH=${openssl_1_1_1}/bin:$PATH
alias openssl3=${openssl_3_0}/bin/openssl
export PS1="[nix $S2N_LIBCRYPTO] $PS1"
Comment on lines +100 to 101
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we print some message saying this alias is available? It was the first command I tried when I wanted openssl-3, but idk if that's a universal thought :)

Copy link
Contributor

@lrstewart lrstewart Oct 18, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe print both the commands and the outputs of "openssl version" and "openssl3 version". Maybe every shell should do that?

source ${writeScript ./nix/shell.sh}
'';
Expand Down