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

Re-introduce OpenSSL hack #67

Merged
merged 1 commit into from
Nov 11, 2024
Merged
Show file tree
Hide file tree
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
5 changes: 5 additions & 0 deletions dev/opentitan.nix
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,11 @@ in
++ extraPkgs;
extraOutputsToInstall = ["dev"];

preExecHook = ''
ln -s ${pkgs.openssl.out}/etc/ssl/openssl.cnf /etc/ssl/openssl.cnf
ln -s /etc/ssl/certs/ca-certificates.crt /etc/ssl/cert.pem
'';

profile = ''
# Workaround bazel bug: https://github.com/bazelbuild/bazel/issues/23217
export TMPDIR=/tmp
Expand Down
5 changes: 5 additions & 0 deletions lib/buildFHSEnvOverlay.nix
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,11 @@
/etc/profile | /etc/profile.d)
continue
;;
# Needs special treatment to make /etc/ssl writable (needed in OT devShell for Bazel)
/etc/ssl)
${coreutils}/bin/cp -rP $i $path
continue
;;
# Populated later
/etc/ld.so*)
continue
Expand Down