Skip to content

Commit

Permalink
Re-introduce OpenSSL hack
Browse files Browse the repository at this point in the history
It's needed by Bazel for bitstream cache.
  • Loading branch information
nbdd0121 authored and engdoreis committed Nov 11, 2024
1 parent 7e387a1 commit 0ce8e8f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
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

0 comments on commit 0ce8e8f

Please sign in to comment.